Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Arduino LED Blinker
SUBMITTED BY:
Guest
DATE:
Dec. 7, 2013, 10:16 a.m.
FORMAT:
C++
SIZE:
329 Bytes
Raw
Download
Tweet
HITS:
966
Go to comments
Report
// arduino led blinker (Exxxtreme)
// by SopaXorzTaker
// Connect LEDS: RED-PIN4 BLUE-PIN5
void
setup
(){
pinMode
(
4
,
OUTPUT
);
pinMode
(
5
,
OUTPUT
);
}
void
loop
(){
digitalWrite
(
4
,
HIGH
);
digitalWrite
(
5
,
HIGH
);
delay
(
1000
);
digitalWrite
(
5
,
LOW
);
delay
(
1000
);
digitalWrite
(
4
,
LOW
);
delay
(
1000
);
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus