I have an adafruit feather 8266 powered by battery and connected to an USB solar charger. The chip goes into deep sleep to conserve battery.
However, I want to detect when the charger is connected and charging, so that I can disable the deep sleep.
What would be the best way to do so? I thought to connect a digital pin to the charging LED directly, but that sounded more like a dirty hack. Any other way that is more elegant?