Sengkang ALP
Monday, 18 July 2016
Lesson 3 - Activity 1B (Red & Green LED (Series))
Activity 1
Assembling Red and Green LED (Series)
Materials needed:
1 X Arduino Board
1 X USB
1 X Laptop
2 X LED
3 X Jumper Wires
2 X 330Ω resistors
Red and Green LED (Series)
Codes:
int led = 7;
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
{
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay (1000);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment