Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define LIGHT_PIN 13
- void setup() {
- pinMode(LIGHT_PIN, OUTPUT);
- }
- void loop() {
- blinkOne(1000);
- blinkOne(200);
- blinkOne(200);
- delay(1000);
- }
- void blinkOne(int onFor) {
- digitalWrite(LIGHT_PIN, HIGH);
- delay(onFor);
- digitalWrite(LIGHT_PIN, LOW);
- delay(100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement