43. Simplify Arduino
42
}
{your program}loop ( )void
;digitalWrite(LED,HIGH)
HIGH = 5 VoltLOW = 0
HIGH
LOW
delay (1000);
digitalWrite(LED, HIGH);
delay(1000);
HIGHLED
millisecondNano-
secondMicro-Second
Low
ing led// Example 1 Blink
comments
Arduino IDE
"//"
// Hello I'm Abdallah
// I'm Using comments
44. Simplify Arduino
43
// Arduino is Sooooo funny
/* Hello I'm Abdallah and I Love Arduino, and you
are going to learnThe best microcontroller system in
the world (^_^)*/
//
/*
*/
Push button
54. Simplify Arduino
53
{digitalWrite(ledPin, HIGH); }
}
ifelseifelse
if
If (you like science) {you should read books}
else if (you like sport) {you should play football}
else if (you like art) { you should take art lessons}
else { you should search for a hobby to do in your summer}