mirror of
https://github.com/mysensors/MySensors.git
synced 2026-03-11 18:47:12 +01:00
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
C++
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);
|
|
} |