]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Naming not chip-oriented
authorCefn Hoile <github.com@cefn.com>
Fri, 16 Feb 2018 21:24:09 +0000 (21:24 +0000)
committerCefn Hoile <github.com@cefn.com>
Fri, 16 Feb 2018 21:24:09 +0000 (21:24 +0000)
python/board/nodemcu.py [new file with mode: 0644]
python/board/pyboard.py [new file with mode: 0644]

diff --git a/python/board/nodemcu.py b/python/board/nodemcu.py
new file mode 100644 (file)
index 0000000..b55912b
--- /dev/null
@@ -0,0 +1,28 @@
+from microcontroller.pin import *
+# note GPIO0 and GPIO2 have built-in pull-ups on common ESP8266
+# breakout boards making them suitable for I2C SDA and SCL
+
+D0 = GPIO16
+D1 = GPIO5
+D2 = GPIO4
+D3 = GPIO0
+D4 = GPIO2
+D5 = GPIO14
+D6 = GPIO12
+D7 = GPIO13
+D8 = GPIO15
+D9 = GPIO3
+D10 = GPIO1
+
+TX1 = D4
+"""Transmit pin from second (transmit-only) UART """
+
+CLK = D5
+"""SPI clock pin"""
+MISO = D6
+"""SPI MISO (Master in, Slave out)"""
+MOSI = D7
+"""SPI MOSI (Master out, Slave in)"""
+
+RX0 = D9
+TX0 = D10
diff --git a/python/board/pyboard.py b/python/board/pyboard.py
new file mode 100644 (file)
index 0000000..c98444f
--- /dev/null
@@ -0,0 +1 @@
+raise Error("Not yet implemented")