Created
January 19, 2021 14:15
-
-
Save jaythomas/5bc647d795368d76fbcd233d69ee4246 to your computer and use it in GitHub Desktop.
Wemos ESP8266 D1 Mini led blink script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wemos Mini D1 Pro pinout. This should have been provided by selecting the correct board but this | |
// board wasn't available when I looked for it so whatever this requires less dependency on the | |
// Arduino IDE configuration anyway. | |
// https://arduino-projekte.info/wp-content/uploads/2017/03/wemos_d1_mini_pro_pinout.png | |
byte PIN_D0 = 16; | |
byte PIN_D1 = 5; | |
byte PIN_D2 = 4; | |
byte PIN_D3 = 0; | |
byte PIN_D4 = 2; | |
byte PIN_D5 = 14; | |
byte PIN_D6 = 12; | |
byte PIN_D7 = 13; | |
byte PIN_D8 = 15; | |
void setup() { | |
Serial.begin(115200); | |
pinMode(PIN_D3, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(PIN_D3, HIGH); | |
delay(1000); | |
digitalWrite(PIN_D3, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment