I was trying to have power consumption as low as possible during deep sleep.
I observed however that the power consumption with a pin floating (GPIO0 to LED->resistor->GND) was lower than adding the following lines to keep its state LOW during sleep:
digitalWrite(0, LOW);
gpio_deep_sleep_hold_en();
gpio_hold_en(GPIO_NUM_0);
I cannot find any explanation on this so far. Why is this? It is a development board with 38 pins.
I think that it might be because of the usb to serial converter?