cgnuino
Main Page
Classes
Examples
DI.ino
#include "cgnuino.h"
CgnDI
button =
CgnDI
(13);
void
setup() {
Serial.begin(115200);
}
void
loop() {
button.
update
();
if
(button.
turnon
(0)) {
Serial.println(
"Pushed"
);
}
else
if
(button.
turnoff
(0)) {
Serial.println(
"Released"
);
}
delay(1);
}
Generated on Thu Oct 1 2020 11:14:28 for cgnuino by
1.8.11