Created
July 25, 2021 21:41
-
-
Save eduardobc88/28c4eaaa4ce9efcf6fbfbb45a2c3b846 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// NOTE: 1- LED BLINKING | |
int pinLed = 13; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(pinLed, OUTPUT); // NOTE: specifying pin (13) as output | |
digitalWrite(pinLed, HIGH); // NOTE: sends 5v to pin (13) | |
digitalWrite(pinLed, LOW); // NOTE: sends 0v to pin (13) | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
digitalWrite(pinLed, HIGH); | |
delay(2000); // NOTE: function to stop execution in milliseconds | |
digitalWrite(pinLed, LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment