Skip to content

Instantly share code, notes, and snippets.

@eduardobc88
Created July 25, 2021 21:41
Show Gist options
  • Save eduardobc88/28c4eaaa4ce9efcf6fbfbb45a2c3b846 to your computer and use it in GitHub Desktop.
Save eduardobc88/28c4eaaa4ce9efcf6fbfbb45a2c3b846 to your computer and use it in GitHub Desktop.
// 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