Chat freely about anything...

User avatar
By GHBLoos
#87433 I have created some Hue lights using a ESP-01 and ESP-12. These lights are configurable using a webpage on the ESP webserver. But the ESP-01 version has less functions (no hardware switch). So I would like to disable this option on the webpage. Therefore I should first check if the code is running on a ESP-01.

Does anyone has an example how to check if the code is running on an ESP-01?
User avatar
By QuickFix
#87457 You can't; the ESP-01 and ESP-12 are exactly identical (from a hard/software point of view), there are only less external pins available on the PCB, but they both use the same ESP chip.

The only thing I can think of is, in hardware, pull one (or a few) of the non-existing pins on an ESP-01 high or low on an ESP-12 and check for that state at startup.