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
18 lines
271 B
Arduino
18 lines
271 B
Arduino
// 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);
|
|
} |