]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Mapped pins from esp8266 microcontroller to Feather Huzzah board
authorCefn Hoile <github.com@cefn.com>
Sun, 18 Feb 2018 20:20:45 +0000 (20:20 +0000)
committerCefn Hoile <github.com@cefn.com>
Sun, 18 Feb 2018 20:20:45 +0000 (20:20 +0000)
python/board/feather_huzzah.py [new file with mode: 0644]

diff --git a/python/board/feather_huzzah.py b/python/board/feather_huzzah.py
new file mode 100644 (file)
index 0000000..76da01f
--- /dev/null
@@ -0,0 +1,32 @@
+from microcontroller.esp8266 import pin
+
+GPIO0=pin.GPIO0
+GPIO1=pin.GPIO1
+GPIO2=pin.GPIO2
+GPIO3=pin.GPIO3
+GPIO4=pin.GPIO4
+GPIO5=pin.GPIO5
+GPIO12=pin.GPIO12
+GPIO13=pin.GPIO13
+GPIO14=pin.GPIO14
+GPIO15=pin.GPIO15
+GPIO16=pin.GPIO16
+
+ADC=pin.TOUT
+
+MISO=GPIO12
+MOSI=GPIO13
+SCK=GPIO14
+
+RX=GPIO3
+TX=GPIO1
+
+# GPIO0 and GPIO2 have built-in pull-ups on common ESP8266
+# breakout boards making them suitable for I2C SDA and SCL
+SDA=GPIO0
+SCL=GPIO2
+
+
+
+
+['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL']