ESP-AT framework with GPIO custom commands
Posted: Fri May 15, 2020 5:34 pm
https://github.com/danistm/esp-at-gpio
partly tested use at your own risk
ESP32 only, build master branch.
Added commands:
dir: 0 = disable 1 = input 2 = output 3 = output open drain
pullup: 0 = pullup 1 = pulldown 2 = pullup + pulldown 3 = float
response: OK or ERROR
state: 0 = RESET 1 = SET
response: OK or ERROR
response: 0 if input low 1 in input high note: pin must be configured as input
partly tested use at your own risk
ESP32 only, build master branch.
Added commands:
Code: Select all
AT+GPIOINIT=<gpio number>,<dir>,<pullup>
pullup: 0 = pullup 1 = pulldown 2 = pullup + pulldown 3 = float
response: OK or ERROR
Code: Select all
AT+GPIOSET=<pin number>,<state>
response: OK or ERROR
Code: Select all
AT+GPIOREAD=<pin number>