Skip to content

Instantly share code, notes, and snippets.

@sebadima
Last active March 13, 2022 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebadima/194530aafa98b2caaa402dad2d67c244 to your computer and use it in GitHub Desktop.
Save sebadima/194530aafa98b2caaa402dad2d67c244 to your computer and use it in GitHub Desktop.
int mioPin = 13; // la porta di uno dei 4 LED interni
void setup()
{
pinMode(mioPin, OUTPUT); // il pin INVIA corrente
}
void loop() // esegue questa sequenza all’infinito
{
digitalWrite(mioPin, HIGH); // accendi il LED
delay(1000); // aspetta un secondo
digitalWrite(mioPin, LOW); // spegni il LED
delay(1000); // aspetta un secondo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment