ESP-AT framework with GPIO custom commands

danielotto
Posts: 1
Joined: Fri May 15, 2020 3:49 pm

ESP-AT framework with GPIO custom commands

Postby danielotto » 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:

Code: Select all

AT+GPIOINIT=<gpio number>,<dir>,<pullup>
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

Code: Select all

AT+GPIOSET=<pin number>,<state>
state: 0 = RESET 1 = SET

response: OK or ERROR

Code: Select all

AT+GPIOREAD=<pin number>
response: 0 if input low 1 in input high note: pin must be configured as input

Who is online

Users browsing this forum: No registered users and 8 guests