Microbit/microbit/i2c.py

changeset 0
b3daa2ebea2f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Microbit/microbit/i2c.py	Sat Aug 24 17:04:25 2019 +0200
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2019 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'microbit.i2c' module.
+"""
+
+from microbit import pin19, pin20
+
+def init(freq=100000, sda=pin20, scl=pin19):
+    pass
+
+def scan():
+    pass
+
+def read(addr, n, repeat=False):
+    pass
+
+def write(addr, buf, repeat=False):
+    pass

eric ide

mercurial