Challenge Name | LED Bilnking | ||||||||||||||||
Author | Christina He | ||||||||||||||||
Credit | -New Innovators: Lab 1 | ||||||||||||||||
Difficulty Level (1-5) | Level 2 | ||||||||||||||||
Time To Complete | Approximately 15 minutes | ||||||||||||||||
Challenge Description | Make one LED to blink on low power for two times, wait for 3 seconds, and blink on high power for one time. The LED will blink continuously. | ||||||||||||||||
Hint | Every second is 1000 for delay function | ||||||||||||||||
Answer |
Code:
void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin, LOW); delay(3000); digitalWrite(ledPin, HIGH); delay(1000); }
Photos:
|
Monday, 30 November 2015
Arduino Challenge 1: LED Blinking (Make Your Own Challenge)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment