mirror of
https://github.com/mysensors/MySensors.git
synced 2026-03-22 16:06:58 +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
21 lines
326 B
C++
21 lines
326 B
C++
// Scope test for write timing of DigitalPin functions.
|
|
#include <DigitalIO.h>
|
|
|
|
// Class with compile time pin number.
|
|
DigitalPin<13> pin13;
|
|
|
|
void setup()
|
|
{
|
|
// set mode to OUTPUT
|
|
pin13.mode(OUTPUT);
|
|
}
|
|
void loop()
|
|
{
|
|
pin13.high();
|
|
pin13.low();
|
|
pin13.write(1);
|
|
pin13.write(0);
|
|
pin13.toggle();
|
|
pin13.toggle();
|
|
delay(1);
|
|
} |