Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define led 13
- void setup()
- {
- // put your setup code here, to run once:
- pinMode(led, OUTPUT);
- }
- void loop()
- {
- high(led);
- pause(500);
- low(led);
- pause(500);
- }
- void high(int pin) {
- digitalWrite(pin, HIGH);
- }
- void low(int pin) {
- digitalWrite(pin, LOW);
- }
- void pause(unsigned long time) {
- delay(time);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement