aboutsummaryrefslogtreecommitdiff
path: root/examples/Blink3rdPartyLib/Blink3rdPartyLib.cpp
blob: c0ddb88df021fe90666877659ac8e6d45f9c1c34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// A derived Blink, that uses an example 3rd party library.
// Turns on an LED on for one second, then off for one second, repeatedly.
// This example code is in the public domain.

#include <TogglePin.h>

#ifdef ARDUINO
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#endif // ARDUINO

int main()
{
	init();
	TogglePin led(13, false);
	while (true) {
		delay(1000);
		led.toggle();
	}
}