mirror of
https://github.com/mysensors/MySensors.git
synced 2026-03-12 02:57:03 +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
12 lines
174 B
C++
12 lines
174 B
C++
// Read pin 12 and write value to pin 13.
|
|
#include <DigitalIO.h>
|
|
|
|
DigitalPin<12> pin12(INPUT);
|
|
DigitalPin<13> pin13(OUTPUT);
|
|
|
|
void setup() {}
|
|
|
|
void loop()
|
|
{
|
|
pin13 = pin12;
|
|
} |