aboutsummaryrefslogtreecommitdiff
path: root/py/qstrdefs.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-12 13:42:35 +0100
committerDamien George <damien.p.george@gmail.com>2016-04-12 14:06:54 +0100
commitd083712224602372c5fd22d0b9e2b32efe6fa26b (patch)
tree49d2f865325a4684a9d23ba702fe702fe2244475 /py/qstrdefs.h
parent53ad681ed1786601ca5eccb60f8fd950b8bc47d7 (diff)
extmod: Add generic machine.I2C class, with bit-bang I2C.
Should work on any machine that provides the correct pin functions.
Diffstat (limited to 'py/qstrdefs.h')
-rw-r--r--py/qstrdefs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/py/qstrdefs.h b/py/qstrdefs.h
index d8c7ccc42..a2717d256 100644
--- a/py/qstrdefs.h
+++ b/py/qstrdefs.h
@@ -681,6 +681,26 @@ Q(mem16)
Q(mem32)
#endif
+#if MICROPY_PY_MACHINE_I2C
+Q(I2C)
+Q(init)
+Q(scl)
+Q(sda)
+Q(freq)
+Q(scan)
+Q(start)
+Q(stop)
+Q(read)
+Q(readinto)
+Q(write)
+Q(readfrom)
+Q(readfrom_into)
+Q(writeto)
+Q(readfrom_mem)
+Q(readfrom_mem_into)
+Q(writeto_mem)
+#endif
+
#if MICROPY_PY_USSL
Q(ussl)
Q(wrap_socket)