|
1 |
| -ESP12 |
2 |
| - |
3 |
| -static const uint8_t D0 = 16; |
4 |
| -static const uint8_t D1 = 5; |
5 |
| -static const uint8_t D2 = 4; // DHT DATA I/O |
6 |
| -static const uint8_t D3 = 0; // BUTTON - most modules have it populated on PCB |
7 |
| -static const uint8_t D4 = 2; // LED (RELAY) - most modules have it populated on PCB |
8 |
| -static const uint8_t D5 = 14; |
9 |
| -static const uint8_t D6 = 12; |
10 |
| -static const uint8_t D7 = 13; |
11 |
| -static const uint8_t D8 = 15; |
12 |
| -static const uint8_t D9 = 3; |
13 |
| -static const uint8_t D10 = 1; |
| 1 | +This application: |
| 2 | +D2 = 4; // DHT DATA I/O |
| 3 | +D3 = 0; // BUTTON - most modules have it populated on PCB |
| 4 | +D4 = 2; // LED (RELAY) - most modules have it populated on PCB |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +Pinout ESP12 (8266) |
| 9 | +D GPIO In Out Notes |
| 10 | + |
| 11 | +D0 16 no interrupt no PWM or I2C support HIGH at boot used to wake up from deep sleep |
| 12 | +D1 5 OK OK often used as SCL (I2C) |
| 13 | +D2 4 OK OK often used as SDA (I2C) |
| 14 | +D3 0 PU OK pulled up connected to FLASH button, boot fails if pulled LOW |
| 15 | +D4 2 PU OK pulled up HIGH at boot connected to on-board LED, boot fails if pulled LOW |
| 16 | +D5 14 OK OK SPI (SCLK) |
| 17 | +D6 12 OK OK SPI (MISO) |
| 18 | +D7 13 OK OK SPI (MOSI) |
| 19 | +D8 15 pulled to GND OK SPI (CS) Boot fails if pulled HIGH |
| 20 | +RX 3 OK RX pin HIGH at boot |
| 21 | +TX 1 TX pin OK HIGH at boot debug output at boot, boot fails if pulled LOW |
| 22 | +A0 ADC0 Analog Input |
| 23 | + |
| 24 | + |
| 25 | +Pinout ESP32 |
| 26 | +IO In Out Notes |
| 27 | + |
| 28 | +0 PU OK pulled-up input, outputs PWM signal at boot |
| 29 | +1 TX OK debug output at boot |
| 30 | +2 OK OK connected to on-board LED |
| 31 | +3 OK RX pin HIGH at boot |
| 32 | +4 OK OK |
| 33 | +5 OK OK outputs PWM signal at boot |
| 34 | + |
| 35 | +6-11 x x connected to the integrated SPI flash |
| 36 | + |
| 37 | +12 OK OK boot fail if pulled high |
| 38 | +13 OK OK |
| 39 | +14 OK OK outputs PWM signal at boot |
| 40 | +15 OK OK outputs PWM signal at boot |
| 41 | +16 OK OK |
| 42 | +17 OK OK |
| 43 | +18 OK OK |
| 44 | +19 OK OK |
| 45 | +21 OK OK |
| 46 | +22 OK OK |
| 47 | +23 OK OK |
| 48 | +25 OK OK |
| 49 | +26 OK OK |
| 50 | +27 OK OK |
| 51 | +32 OK OK |
| 52 | +33 OK OK |
| 53 | +34 OK input only |
| 54 | +35 OK input only |
| 55 | +36 OK input only |
| 56 | +39 OK input only |
0 commit comments