From: Cefn Hoile Date: Sun, 18 Feb 2018 20:20:45 +0000 (+0000) Subject: Mapped pins from esp8266 microcontroller to Feather Huzzah board X-Git-Tag: 0.1.0~4^2~114 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/2921beef9bb3390fa003cdcf01b9429bb0cf47b9 Mapped pins from esp8266 microcontroller to Feather Huzzah board --- diff --git a/python/board/feather_huzzah.py b/python/board/feather_huzzah.py new file mode 100644 index 0000000..76da01f --- /dev/null +++ b/python/board/feather_huzzah.py @@ -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']