Files
MySensors/drivers/AVR/DigitalIO/examples/PinIOConfigToggle/PinIOConfigToggle.ino
Patrick Fallberg 8e1ef13804 Repo restyled using astyle (#683)
The rules are in .tools/astyle/config/style.cfg
and can also be reviewed at
https://www.mysensors.org/view/260#coding-guidelines-core-library
2016-12-07 23:44:29 +01:00

18 lines
271 B
C++

// Test the config() and toggle() functions.
#include <DigitalIO.h>
// Set runtime pin number.
PinIO pin13(13);
void setup()
{
// set mode to OUTPUT and level LOW
pin13.config(OUTPUT, LOW);
}
void loop()
{
pin13.toggle();
delay(100);
pin13.toggle();
delay(400);
}