Microbit/microbit/uart.py

changeset 0
b3daa2ebea2f
equal deleted inserted replaced
-1:000000000000 0:b3daa2ebea2f
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

eric ide

mercurial