|
1 # -*- coding: utf-8 -*- |
|
2 |
|
3 # Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de> |
|
4 # |
|
5 |
|
6 """ |
|
7 Module containing stubs for API generation of the 'microbit.uart' module. |
|
8 """ |
|
9 |
|
10 ODD = 0 |
|
11 EVEN = 1 |
|
12 |
|
13 def init(baudrate=9600, bits=8, parity=None, stop=1, *, tx=None, rx=None): |
|
14 pass |
|
15 |
|
16 def any(): |
|
17 pass |
|
18 |
|
19 def read(): |
|
20 pass |
|
21 |
|
22 def read(nbytes): |
|
23 pass |
|
24 |
|
25 def readinto(buf): |
|
26 pass |
|
27 |
|
28 def readinto(buf, nbytes): |
|
29 pass |
|
30 |
|
31 def readline(): |
|
32 pass |
|
33 |
|
34 def write(buf): |
|
35 pass |