- Sat Mar 05, 2016 12:15 pm
#42491
Finally I got it sorted thanks to you guys pointing me to the pin-mapping issue.
The ESP8266 D1 has only a FEW PINS available for general use (ie using digitalWrite(PIN...).
pin 2 maps to TX1/D9
pin 4 maps to D14/SDA/D4
pin 5 maps to D15/SCL/D3
pin 12 maps to D12/MISO
pin 13 maps to D11/MOSI
pin 14 maps to D14/SCK
pin 15 maps to D10/SS
When I write "pin" above I am referring to the actual GPIO, which is printed under the board too (so not very useful having it there).
Some pins are duplicated:
pin 14 also maps to D13 / SCK/D5
pin 12 also maps to D12 / MISO /D6
pin 13 also maps to D11 / MOSI / D7
(there may be others)
As this board is now deprecated I wonder if they have improved the number of pins available on the R2 version?
Anyway, I now have my LED Matrix sketch running on the D1 (lucky I didn't need more pins!) which is not what it is going to be used for but proves that it at least runs Arduino code as it should. No more RSTs
Thanks again guys!