Austin Detzel
Published © CC BY-NC-SA

Make The Esp8266 Chip A Little Bit Easier To Program!

For beginners the ESP8266 12-e can be hard to figure out, that's why I made easy this project!

BeginnerProtip30 minutes1,507
Make The Esp8266 Chip A Little Bit Easier To Program!

Things used in this project

Hardware components

NodeMCU ESP8266 Breakout Board
NodeMCU ESP8266 Breakout Board
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Code

Code Snippet 1

Arduino
int pin[]{16, 5, 4, 0, 2, 14, 12, 13, 15};
void setup() { 
pinMode(pin[0], OUTPUT);   //this would actually be GPIO 16
pinMode(pin[4], OUTPUT);  //this would actually be GPIO 0
}
void loop() { 
digitalWrite(pin[0], HIGH); 
digitalWrite(pin[4], LOW); 
delay(500); 
digitalWrite(pin[0], LOW); 
digitalWrite(pin[4], HIGH); 
delay(500); 
} 

Credits

Austin Detzel
26 projects • 38 followers
Contact

Comments

Please log in or sign up to comment.