Skip to content

Commit

Permalink
stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
previ committed Jul 3, 2024
1 parent b46aad2 commit 9672acd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
32 changes: 32 additions & 0 deletions stub/gpiozero/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class CPUTemperature:
def __init__(self):
pass

@property
def temperature(self):
return 50.0

class BoardInfo:
model = 'Raspberry Pi 3 Model B'
revision = 'a02082'
released = 'Q1 2016'
manufacturer = 'Sony UK'
soc = 'BCM2837'
pcb_revision = '1.2'
memory = '1GB'
storage = 'MicroSD'
usb = '4'
usb3 = '0'
ethernet = '1'
eth_speed = '100M'
wifi = 'b/g/n'
bluetooth = '4.1'

class PinFactory:
board_info = BoardInfo

class Device:
pin_factory = PinFactory



2 changes: 2 additions & 0 deletions stub/uptime/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def uptime():
return 1000.0

0 comments on commit 9672acd

Please sign in to comment.