]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
SDA/SCL matching labels on board
authorCefn Hoile <github.com@cefn.com>
Mon, 19 Feb 2018 13:59:00 +0000 (13:59 +0000)
committerCefn Hoile <github.com@cefn.com>
Mon, 19 Feb 2018 13:59:00 +0000 (13:59 +0000)
python/board/feather_huzzah.py

index 76da01f781c6257884dd63c67cbba5c81d1fa2a8..3510f13b414492c7fe5b2ff39db3e847e0777434 100644 (file)
@@ -1,5 +1,7 @@
 from microcontroller.esp8266 import pin
 
 from microcontroller.esp8266 import pin
 
+# TODO need equiv of INPUT_PULL_DOWN_16 ? see https://tttapa.github.io/ESP8266/Chap04%20-%20Microcontroller.html
+
 GPIO0=pin.GPIO0
 GPIO1=pin.GPIO1
 GPIO2=pin.GPIO2
 GPIO0=pin.GPIO0
 GPIO1=pin.GPIO1
 GPIO2=pin.GPIO2
@@ -21,12 +23,7 @@ SCK=GPIO14
 RX=GPIO3
 TX=GPIO1
 
 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
-
-
-
+SDA=GPIO4
+SCL=GPIO5
 
 ['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL']
 
 ['ADC', 'GPIO16', 'GPIO14', 'SCK', 'GPIO12', 'MISO', 'GPIO13', 'MOSI', 'GPIO15', 'GPIO2', 'GPIO0', 'GPIO4', 'SDA', 'RX', 'TX', 'GPIO5', 'SCL']