analog input capability

This commit is contained in:
Siwat Sirichai 2023-08-26 23:16:51 +07:00
parent 81f0e80f8c
commit 94443393d0
5 changed files with 68 additions and 19 deletions

View file

@ -0,0 +1,10 @@
#include <ESPMegaPRO.h>
void setup() {
ESPMega_begin();
Serial.begin(115200);
}
void loop() {
int a0 = ESPMega_analogRead(0);
Serial.println(a0);
}