• I'm not really sure - there's nothing in that code that'd drain the battery so quickly - people have been running devices in HID mode for ages without issues. Have you tried just powering your system off a bench supply, maybe via a volt meter to measure current draw?

    It might help to figure out exactly when your board starts drawing lots of power.

    One thing that could cause you issues is if the onboard serial port decided to power on because D8 was pulled high at boot. Even then it's only 1mA or so, which wouldn't drain the battery that quick.

About

Avatar for Gordon @Gordon started