Just Flashed BLINK to DFRobotBeetle ESP32-C3FH4 and pins_arduino.h had "10" defined as BLU LED pin. Actual pin is "8". Now flashing at 1sec.
In pins_arduino.h USB_VID 0x3343, USB_PID 0x8364, but IDE reports my C3 as VID 0x303A PID 0x1001 SN (null). I got this batch from AliExpress
This is not an error.
ESP32 LED_BUILTIN is not strictly determined. Even exits ESP32s without such led. C6 has RGB led... Previously Arduino family boards always had built-in LED, ut existence of built-in LED and pin number varies by ESP32 version,manufacturer. Theoretically it should be specified by datasheet, but...
The DFRobot data sheet for the board states that the LED is on pin 10, which is consistent with the board's variant.
Perhaps you should contact DFRobot to determine why things are inconsistent between the datasheet and your board.
Or perhaps, AliExpress is shipping some other board?
Looking at the VID and PID of your board here, your board is reported as an Espressif USB JTAG/serial debug unit.
Looking up the VID in the variants file (0x3343), here is what is returned:
Zhiwei Robotics Corp
the DFRobot Beetle pins_arduino.h states NUM_DIGITAL_PINS 22, but I count 13 (GPOI0-10,20,21)
I gave the wrong link for the data sheet. The correct link is:
https://wiki.dfrobot.com/SKU_DFR0868_Beetle_ESP32_C3#target_3
Are you selecting the DFRobot Beetle ESP32-C3 as your board?
I am not sure where you are getting 22 digital pins from.
It looks like @gregcrago is using a version of the "esp32" boards platform <2.0.15. In those versions, the macro was defined in the board's core variant:
The macro definition was later removed from the file and is now defined universally in the core:
An Espressif ESP32-C3 has 22 GPIO pins, but not all are available, and the DFRobot Beetle ESP32-C3 certainly has fewer.
In any case, none of this explains the discrepancy in LED GPIO numbers.
What a confusing mess, but given all the versions of ESP32 boards and processors, I am not surprised.
