Code LED di Arduino Uno

 




void setup() {
  // put your setup code here, to run once:
 pinMode(1, OUTPUT);
 digitalWrite(1, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
 digitalWrite(1, HIGH);  // turn the LED on (HIGH is the voltage level)
  delay(1000);                      // wait for a second
  digitalWrite(1, LOW);   // turn the LED off by making the voltage LOW
  delay(1000);      
}

Post a Comment

أحدث أقدم