Arduino LED Blinker


SUBMITTED BY: Guest

DATE: Dec. 7, 2013, 10:16 a.m.

FORMAT: C++

SIZE: 329 Bytes

HITS: 972

  1. // arduino led blinker (Exxxtreme)
  2. // by SopaXorzTaker
  3. // Connect LEDS: RED-PIN4 BLUE-PIN5
  4. void setup(){
  5. pinMode(4,OUTPUT);
  6. pinMode(5,OUTPUT);
  7. }
  8. void loop(){
  9. digitalWrite(4,HIGH);
  10. digitalWrite(5,HIGH);
  11. delay(1000);
  12. digitalWrite(5,LOW);
  13. delay(1000);
  14. digitalWrite(4,LOW);
  15. delay(1000);
  16. }

comments powered by Disqus