| Serial Converter | ESP8266 12E | 저항 연결 |
|---|---|---|
| VCC (3.3V) | VCC | |
| VCC (3.3V) | EN (CH_PD) | 10k Pull Up |
| RTS | RESET | 10k Pull Up |
| GND | GND | |
| GND | GPIO15 | 10k Pull Dn |
| DTR | GPIO0 | 10k Pull Up |
| TX or GPIO2 | RX | |
| RX | TX |
| 전원 공급기 | ESP8266 12E | 저항 연결 |
|---|---|---|
| VCC (3.3V) | VCC | |
| VCC (3.3V) | EN (CH_PD) | 10k Pull Up |
| GND | GND | |
| GND | GPIO15 | 10k Pull Dn |
| VCC (3.3V) | GPIO0 | 10k Pull Up |
ESP8266 12E 보드에 LED를 켜고 끄는 BLINK 예제이다.
GPIO14에 연결하였다.
int LED = 14; // Use D5, GPIO14 void setup() { pinMode(LED, OUTPUT); // Initialize the LED pin as an output } // the loop function runs over and over again forever void loop() { digitalWrite(LED, LOW); // Turn the LED delay(1000); // Wait for a seconds digitalWrite(LED, HIGH); // Turn the LED delay(1000); // Wait for a seconds }