Page 1 of 1
Ancient ESP Versus New? LED Not On Pin 2?
Posted: Sun Aug 07, 2022 4:15 am
by Jibun no kage
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?
Posted: Sun Aug 07, 2022 10:03 am
by karfas
You might use machine.unique_id() to find out on which of your boards your program runs.
Re: Ancient ESP Versus New? LED Not On Pin 2?
Posted: Mon Aug 08, 2022 2:54 am
by Jibun no kage
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.