So you're a Noob? Post your questions here until you graduate! Don't be shy.
User avatar
By atexit8
#67298
elektronik wrote:
atexit8 wrote:Have you tried the AT commands to set the GPIO0 and GPIO2 pins with v2.1.0 ?
I have two ESP-01 with old Ai-Thinker firmware that I am thinking about upgrading to v2.1.0.


I checked, it works.


Which commands did you use?

When I issued AT+SYSIOGETCFG=2, I get NOT GPIO MODE!.
User avatar
By QuickFix
#67348
atexit8 wrote:I get NOT GPIO MODE!.

The only thing I can think of is that the GPIO-mode of that pin hasn't been set yet.

Have you tried setting the mode first before querying it?
Code: Select allAT+SYSIOSETCFG=2,3,1 //Set GPIO12 to work as a GPIO with pull-up

AT+SYSIOGETCFG=2 // This should return: +SYSIOGETCFG:2,3,1
User avatar
By atexit8
#67357 I had thought there would be default settings for GPIO2.

If my memory isn't faulty, I was able to get the configuration for GPIO0 without having to set the mode first.