Skip to content

Commit 9672acd

Browse files
committed
stubs
1 parent b46aad2 commit 9672acd

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

stub/gpiozero/__init__.py

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
class CPUTemperature:
2+
def __init__(self):
3+
pass
4+
5+
@property
6+
def temperature(self):
7+
return 50.0
8+
9+
class BoardInfo:
10+
model = 'Raspberry Pi 3 Model B'
11+
revision = 'a02082'
12+
released = 'Q1 2016'
13+
manufacturer = 'Sony UK'
14+
soc = 'BCM2837'
15+
pcb_revision = '1.2'
16+
memory = '1GB'
17+
storage = 'MicroSD'
18+
usb = '4'
19+
usb3 = '0'
20+
ethernet = '1'
21+
eth_speed = '100M'
22+
wifi = 'b/g/n'
23+
bluetooth = '4.1'
24+
25+
class PinFactory:
26+
board_info = BoardInfo
27+
28+
class Device:
29+
pin_factory = PinFactory
30+
31+
32+

stub/uptime/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def uptime():
2+
return 1000.0

0 commit comments

Comments
 (0)