pugliasos newlogoDEF

Orario della segreteria: tutti i martedì, dalle ore 17 alle 19, su appuntamento.

Accensione

Il codice è identico al precedente solo che bisogna sostituire la porta 13 con la 8

void setup() {
  pinmode(8,OUTPUT);
  digitalWrite(8,HIGH);
}

void loop() {
}

Lampeggio

void setup() {
  pinMode(8, OUTPUT); // configura il pin 8 come output
}

void loop() {
  digitalWrite(8, HIGH); /* accende il LED (HIGH è il livello del potenziale 5 V)*/
  delay(1000); // attende 1 s
  digitalWrite(8, LOW); /* spegne il LED portando il livello del potenziale su 0 V */
  delay(1000); // attende 1 s
}

 Con Otto Blockly

ottoLampLED8

Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline