![Adafruit Feather HUZZAH ESP8266 Скачать руководство пользователя страница 11](http://html1.mh-extra.com/html/adafruit/feather-huzzah-esp8266/feather-huzzah-esp8266_manual_2845856011.webp)
I2C & SPI pins
You can use the ESP8266 to control I2C and SPI devices, sensors, outputs, etc. While
this is done by 'bitbanging', it works quite well and the ESP8266 is fast enough to
match 'Arduino level' speeds.
In theory you can use any pins for I2C and SPI but to make it easier for people using
existing Arduino code, libraries, sketches we set up the following:
I2C SDA = GPIO #4 (default)
I2C SCL = GPIO #5 (default)
If you want, you can connect to I2C devices using other 2 pins in the Arduino IDE, by
calling
Wire.pins(sda, scl)
before any other Wire code is called (so, do this at
the begining of
setup()
for example
Likewise, you can use SPI on any pins but if you end up using 'hardware SPI' you will
want to use the following:
SPI SCK = GPIO #14 (default)
SPI MOSI = GPIO #13 (default)
SPI MISO = GPIO #12 (default)
•
•
•
•
•
©Adafruit Industries
Page 11 of 53
Содержание Feather HUZZAH ESP8266
Страница 4: ...Adafruit Industries Page 4 of 53...