Microbit/microbit/uart.py

changeset 0
b3daa2ebea2f
diff -r 000000000000 -r b3daa2ebea2f Microbit/microbit/uart.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Microbit/microbit/uart.py	Sat Aug 24 17:04:25 2019 +0200
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'microbit.uart' module.
+"""
+
+ODD = 0
+EVEN = 1
+
+def init(baudrate=9600, bits=8, parity=None, stop=1, *, tx=None, rx=None):
+    pass
+
+def any():
+    pass
+
+def read():
+    pass
+
+def read(nbytes):
+    pass
+
+def readinto(buf):
+    pass
+
+def readinto(buf, nbytes):
+    pass
+
+def readline():
+    pass
+
+def write(buf):
+    pass

eric ide

mercurial