0% found this document useful (0 votes)
9 views1 page

Arduino LED Control Code Example

The document appears to be a code snippet for an Arduino program. It includes setup and loop functions to control digital pins 11, 12, and 13, with delays and digital write commands. The code is structured to run repeatedly with specific output states for the pins.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Arduino LED Control Code Example

The document appears to be a code snippet for an Arduino program. It includes setup and loop functions to control digital pins 11, 12, and 13, with delays and digital write commands. The code is structured to run repeatedly with specific output states for the pins.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PRESENTADO POR:

SAMUEL GOMEZ
PRESENTADO A:
PROFESOR
GMSF
JULIO-2025

void setup() { // put your main code here, to delay(500);


run repeatedly:
// put your setup code here, to digitalWrite(13,LOW);
run once: digitalWrite(13,HIGH);
digitalWrite(12,LOW);
pinMode(13,OUTPUT); digitalWrite(12,LOW);
digitalWrite(11,HIGH);
pinMode(12,OUTPUT); digitalWrite(11,LOW);
delay(3000);
pinMode(11,OUTPUT); delay(3000);
digitalWrite(13,LOW);
} digitalWrite(13,LOW);
digitalWrite(12,HIGH);
void loop() { digitalWrite(12,HIGH);
digitalWrite(11,LOW);
digitalWrite(11,LOW);
delay(500);

You might also like