Advertisement
hwthinker

DemoBlinky-Lolin32Lite

Feb 13th, 2019
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   Demo blinky Lolin32 lite
  3. */
  4. #define LED_BUILTIN 22
  5. // the setup function runs once when you press reset or power the board
  6. void setup() {
  7.   // initialize digital pin LED_BUILTIN as an output.
  8.   pinMode(LED_BUILTIN, OUTPUT);
  9. }
  10.  
  11. // the loop function runs over and over again forever
  12. void loop() {
  13.   digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  14.   delay(1000);                       // wait for a second
  15.   digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  16.   delay(1000);                       // wait for a second
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement