cgnuino
Main Page
Classes
Examples
DI.ino
#include "cgnuino.h"
CgnDI
button =
CgnDI
(2);
void
setup() {
Serial.begin(115200);
}
void
loop() {
button.
update
();
if
(button.
turnon
()) {
Serial.println(
"Pushed"
);
}
else
if
(button.
turnoff
()) {
Serial.println(
"Released"
);
}
delay(1);
}
Generated on Sat Oct 17 2020 12:30:22 for cgnuino by
1.8.11