Ancient ESP Versus New? LED Not On Pin 2?
-
- Posts: 144
- Joined: Mon Jul 25, 2022 9:45 pm
Ancient ESP Versus New? LED Not On Pin 2?
Just came across something, have ESP modules that have different LED pin assignments? The most recent ESP modules I have, based on recent purchase, the LED is pin 2. But I have older ESP modules where LED is on pin 0. Trying to work out a method to know which pin is used on which module. Anyone have any suggestions?
Re: Ancient ESP Versus New? LED Not On Pin 2?
You might use machine.unique_id() to find out on which of your boards your program runs.
A few hours of debugging might save you from minutes of reading the documentation!
My repositories: https://github.com/karfas
My repositories: https://github.com/karfas
-
- Posts: 144
- Joined: Mon Jul 25, 2022 9:45 pm
Re: Ancient ESP Versus New? LED Not On Pin 2?
Pulling the manufacturer code and chip id worked for all the ESP8266 variants but not the ESP32 modules, had to get creative with them since it was MAC addresses, so have an exclusion list, in the list, newer ESP32, otherwise older. Had to do the same thing with ESP32 for those that do have the on-board temperature sensor versus the newer ones that don't.