analog input capability
This commit is contained in:
parent
81f0e80f8c
commit
94443393d0
5 changed files with 68 additions and 19 deletions
17
Template Project/src/input_test.cpp.disabled
Normal file
17
Template Project/src/input_test.cpp.disabled
Normal file
|
@ -0,0 +1,17 @@
|
|||
#include "ESPMegaPRO.h"
|
||||
|
||||
void setup() {
|
||||
ESPMega_begin();
|
||||
Serial.begin(115200);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
if(ESPMega_digitalRead(11)) {
|
||||
ESPMega_digitalWrite(8, HIGH);
|
||||
Serial.println("11HIGH");
|
||||
} else {
|
||||
ESPMega_digitalWrite(8, LOW);
|
||||
Serial.println("11LOW");
|
||||
}
|
||||
ESPMega_loop();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue