mirror of
https://github.com/mysensors/MySensors.git
synced 2026-03-22 07:56: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
290 B
C++
21 lines
290 B
C++
// Scope test for PinIO class write timing.
|
|
#include <DigitalIO.h>
|
|
|
|
// Class with runtime pin numbers.
|
|
PinIO pin(13);
|
|
|
|
void setup()
|
|
{
|
|
// Set mode to OUTPUT.
|
|
pin.mode(OUTPUT);
|
|
}
|
|
void loop()
|
|
{
|
|
pin.high();
|
|
pin.low();
|
|
pin.write(1);
|
|
pin.write(0);
|
|
pin.toggle();
|
|
pin.toggle();
|
|
delay(1);
|
|
} |