Рет қаралды 24
Program pertama membuat kedpan LED
// C++ code
//
const int pinLED=8;
void setup()
{
pinMode(pinLED, OUTPUT);
}
void loop()
{
digitalWrite(pinLED, HIGH);
delay(500); // Wait for 500 millisecond(s)
digitalWrite(pinLED, LOW);
delay(500); // Wait for 500 millisecond(s)
}