Calliope/calliope_mini/spi.py

changeset 10
f34fe5abe069
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Calliope/calliope_mini/spi.py	Wed Apr 29 18:26:18 2020 +0200
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2020 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module containing stubs for API generation of the 'calliope_mini.spi' module.
+"""
+
+from calliope_mini import pin13, pin14, pin15
+
+def init(baudrate=1000000, bits=8, mode=0, sclk=pin13, mosi=pin15, miso=pin14):
+    pass
+
+def read(nbytes):
+    pass
+
+def write(buffer):
+    pass
+
+def write_readinto(out_buffer, in_buffer):
+    pass

eric ide

mercurial