MicroPython/pyb.py

Mon, 26 Aug 2019 20:44:31 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 26 Aug 2019 20:44:31 +0200
changeset 3
2151a8fd54e3
parent 2
2c3f30af031d
permissions
-rw-r--r--

Completed the stubs for the pyb.py module.

2
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 #
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 """
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 Module containing stubs for API generation of the def 'pyb' module.
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 """
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 hid_mouse = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 hid_keyboard = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 def delay(ms):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 def udelay(us):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 def millis():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 def micros():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 def elapsed_millis(start):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28 def elapsed_micros(start):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31 def hard_reset():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 def bootloader():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
37 def fault_debug(value):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
38 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
39
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
40 def disable_irq():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
41 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
42
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
43 def enable_irq(state=True):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
44 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
45
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
46 def freq(sysclk=None, hclk=None, pclk1=None, pclk2=None):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
47 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
48
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
49 def wfi():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
50 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
51
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
52 def stop():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
53 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
54
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
55 def standby():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
56 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
57
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
58 def have_cdc():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
59 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
60
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
61 def hid(buttons, x, y, z):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
62 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
63
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
64 def info(dump_alloc_table=None):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
65 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
66
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
67 def main(filename):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
68 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
69
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
70 def mount(device, mountpoint, *, readonly=False, mkfs=False):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
71 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
72
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
73 def repl_uart(uart):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
74 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
75
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
76 def rng():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
77 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
78
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
79 def sync():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
80 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
81
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
82 def unique_id():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
83 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
84
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
85 def usb_mode(modestr=None, vid=0xf055, pid=0x9801, hid=hid_mouse):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
86 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
87
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
88 class Accel():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
89 def __init__(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
90 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
91
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
92 def filtered_xyz(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
93 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
94
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
95 def tilt(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
96 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
97
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
98 def x(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
99 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
100
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
101 def y(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
102 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
103
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
104 def z(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
105 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
106
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
107 class ADC():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
108 def __init__(self, pin):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
109 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
110
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
111 def read(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
112 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
113
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
114 def read_timed(self, buf, timer):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
115 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
116
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
117 def read_timed_multi(self, adcs, bufs, timer):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
118 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
119
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
120 class CAN():
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
121 NORMAL = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
122 LOOPBACK = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
123 SILENT = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
124 SILENT_LOOPBACK = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
125 STOPPED = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
126 ERROR_ACTIVE = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
127 ERROR_WARNING = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
128 ERROR_PASSIVE = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
129 BUS_OFF = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
130 LIST16 = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
131 MASK16 = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
132 LIST32 = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
133 MASK32 = 0
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
134
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
135 def __init__(self, bus, mode, extframe=False, prescaler=100, *, sjw=1,
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
136 bs1=6, bs2=8, auto_restart=False):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
137 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
138
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
139 def init(self, mode, extframe=False, prescaler=100, *, sjw=1, bs1=6, bs2=8,
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
140 auto_restart=False):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
141 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
142
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
143 @classmethod
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
144 def initfilterbanks(cls, nr):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
145 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
146
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
147 def deinit(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
148 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
149
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
150 def restart(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
151 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
152
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
153 def state(self):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
154 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
155
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
156 def info(self, list=None):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
157 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
158
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
159 def setfilter(self, bank, mode, fifo, params, *, rtr):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
160 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
161
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
162 def clearfilter(self, bank):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
163 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
164
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
165 def any(self, fifo):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
166 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
167
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
168 def recv(self, fifo, list=None, *, timeout=5000):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
169 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
170
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
171 def send(self, data, id, *, timeout=0, rtr=False):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
172 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
173
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
174 def rxcallback(self, fifo, fun):
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
175 pass
2c3f30af031d Started to add the stubs for MicroPython.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
176
3
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
177 class DAC():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
178 NORMAL = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
179 CIRCULAR = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
180
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
181 def __init__(self, port, bits=8, *, buffering=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
182 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
183
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
184 def init(self, bits=8, *, buffering=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
185 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
186
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
187 def deinit(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
188 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
189
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
190 def noise(self, freq):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
191 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
192
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
193 def triangle(self, freq):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
194 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
195
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
196 def write(self, value):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
197 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
198
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
199 def write_timed(self, data, freq, *, mode=NORMAL):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
200 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
201
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
202 class ExtInt():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
203 IRQ_FALLING = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
204 IRQ_RISING = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
205 IRQ_RISING_FALLING = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
206
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
207 def __init__(self, pin, mode, pull, callback):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
208 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
209
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
210 def disable(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
211 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
212
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
213 def enable(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
214 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
215
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
216 def line(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
217 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
218
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
219 def swint(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
220 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
221
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
222 @classmethod
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
223 def regs(cls):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
224 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
225
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
226 class I2C():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
227 MASTER = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
228 SLAVE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
229
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
230 def __init__(self, bus, mode=None, *, addr=0x12, baudrate=400000,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
231 gencall=False, dma=False):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
232 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
233
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
234 def deinit(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
235 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
236
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
237 def init(self, mode, *, addr=0x12, baudrate=400000, gencall=False,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
238 dma=False):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
239 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
240
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
241 def is_ready(self, addr):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
242 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
243
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
244 def mem_read(self, data, addr, memaddr, *, timeout=5000, addr_size=8):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
245 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
246
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
247 def mem_write(self, data, addr, memaddr, *, timeout=5000, addr_size=8):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
248 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
249
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
250 def recv(self, recv, addr=0x00, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
251 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
252
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
253 def send(self, send, addr=0x00, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
254 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
255
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
256 def scan(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
257 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
258
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
259 class LCD():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
260 def __init__(self, skin_position):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
261 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
262
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
263 def command(self, instr_data, buf):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
264 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
265
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
266 def contrast(self, value):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
267 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
268
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
269 def fill(self, colour):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
270 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
271
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
272 def get(self, x, y):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
273 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
274
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
275 def light(self, value):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
276 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
277
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
278 def pixel(self, x, y, colour):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
279 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
280
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
281 def show(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
282 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
283
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
284 def text(self, text, x, y, colour):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
285 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
286
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
287 def write(self, text):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
288 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
289
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
290 class LED():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
291 def __init__(self, id):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
292 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
293
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
294 def intensity(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
295 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
296
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
297 def off(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
298 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
299
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
300 def on(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
301 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
302
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
303 def toggle(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
304 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
305
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
306 class Pin():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
307 AF_OD = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
308 AF_PP = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
309 ANALOG = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
310 IN = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
311 OUT_OD = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
312 OUT_PP = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
313 PULL_DOWN = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
314 PULL_NONE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
315 PULL_UP = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
316
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
317 def __init__(self, id, mode, pull=PULL_NONE, af=-1):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
318 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
319
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
320 def init(self, mode, pull=PULL_NONE, af=-1):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
321 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
322
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
323 def value(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
324 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
325
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
326 def af(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
327 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
328
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
329 def af_list(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
330 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
331
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
332 def gpio(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
333 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
334
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
335 def mode(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
336 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
337
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
338 def name(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
339 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
340
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
341 def names(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
342 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
343
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
344 def pin(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
345 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
346
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
347 def port(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
348 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
349
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
350 def pull(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
351 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
352
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
353 @classmethod
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
354 def debug(cls, state=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
355 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
356
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
357 @classmethod
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
358 def dict(cls, dict=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
359 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
360
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
361 @classmethod
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
362 def mapper(cls, fun=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
363 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
364
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
365 class RTC():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
366 def __init__(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
367 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
368
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
369 def datetime(self, datetimetuple=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
370 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
371
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
372 def wakeup(self, timeout, callback=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
373 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
374
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
375 def info(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
376 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
377
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
378 def calibration(self, cal):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
379 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
380
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
381 class Servo():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
382 def __init__(self, id):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
383 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
384
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
385 def angle(self, angle=None, time=0):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
386 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
387
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
388 def speed(self, speed=None, time=0):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
389 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
390
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
391 def pulse_width(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
392 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
393
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
394 def calibration(self, pulse_min=None, pulse_max=None, pulse_centre=None,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
395 pulse_angle_90=None, pulse_speed_100=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
396 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
397
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
398 class SPI():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
399 MASTER = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
400 SLAVE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
401 LSB = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
402 MSB = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
403
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
404 def __init__(self, bus, mode=None, baudrate=328125, *, prescaler,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
405 polarity=1, phase=0, bits=8, firstbit=MSB, ti=False,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
406 crc=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
407 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
408
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
409 def deinit(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
410 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
411
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
412 def init(self, mode, baudrate=328125, *, prescaler, polarity=1, phase=0,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
413 bits=8, firstbit=MSB, ti=False, crc=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
414 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
415
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
416 def recv(self, recv, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
417 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
418
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
419 def send(self, send, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
420 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
421
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
422 def send_recv(self, send, recv=None, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
423 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
424
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
425 class Switch():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
426 def __init__(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
427 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
428
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
429 def value(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
430 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
431
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
432 def callback(self, fun):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
433 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
434
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
435 class Timer():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
436 PWM = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
437 PWM_INVERTED = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
438 OC_TIMING = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
439 OC_ACTIVE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
440 OC_INACTIVE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
441 OC_TOGGLE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
442 OC_FORCED_ACTIVE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
443 OC_FORCED_INACTIVE = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
444 IC = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
445 ENC_A = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
446 ENC_B = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
447 ENC_AB = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
448 HIGH = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
449 LOW = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
450 RISING = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
451 FALLING = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
452 BOTH = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
453
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
454 def __init__(self, id, *, freq, prescaler, period):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
455 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
456
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
457 def init(self, *, freq, prescaler, period):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
458 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
459
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
460 def deinit(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
461 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
462
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
463 def callback(self, fun):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
464 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
465
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
466 def channel(self, channel, mode, **kwargs):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
467 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
468
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
469 def counter(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
470 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
471
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
472 def freq(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
473 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
474
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
475 def period(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
476 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
477
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
478 def prescaler(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
479 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
480
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
481 def source_freq(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
482 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
483
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
484 class TimerChannel():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
485 def callback(self, fun):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
486 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
487
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
488 def capture(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
489 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
490
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
491 def compare(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
492 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
493
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
494 def pulse_width(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
495 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
496
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
497 def pulse_width_percent(self, value=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
498 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
499
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
500 class UART():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
501 RTS = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
502 CTS = 0
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
503
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
504 def __init__(self, bus, baudrate=None, bits=8, parity=None, stop=1, *,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
505 timeout=0, flow=0, timeout_char=0, read_buf_len=64):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
506 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
507
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
508 def init(self, baudrate, bits=8, parity=None, stop=1, *, timeout=0, flow=0,
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
509 timeout_char=0, read_buf_len=64):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
510 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
511
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
512 def deinit(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
513 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
514
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
515 def any(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
516 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
517
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
518 def read(self, nbytes=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
519 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
520
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
521 def readchar(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
522 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
523
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
524 def readinto(self, buf, nbytes=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
525 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
526
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
527 def readline(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
528 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
529
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
530 def write(self, buf):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
531 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
532
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
533 def writechar(self, char):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
534 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
535
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
536 def sendbreak(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
537 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
538
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
539 class USB_HID():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
540 def __init__(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
541 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
542
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
543 def recv(self, data, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
544 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
545
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
546 def send(self, data):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
547 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
548
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
549 class USB_VCP():
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
550 def __init__(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
551 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
552
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
553 def setinterrupt(self, chr):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
554 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
555
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
556 def isconnected(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
557 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
558
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
559 def any(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
560 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
561
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
562 def close(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
563 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
564
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
565 def read(self, nbytes=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
566 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
567
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
568 def readinto(self, buf, maxlen=None):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
569 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
570
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
571 def readline(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
572 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
573
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
574 def readlines(self):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
575 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
576
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
577 def write(self, buf):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
578 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
579
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
580 def recv(self, data, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
581 pass
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
582
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
583 def send(self, data, *, timeout=5000):
2151a8fd54e3 Completed the stubs for the pyb.py module.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 2
diff changeset
584 pass

eric ide

mercurial