led tweaks

This commit is contained in:
Joey Castillo 2021-08-14 19:15:51 -04:00
parent 7caa6ff19a
commit efd75d2504

View File

@ -15,6 +15,9 @@ static void extwake_callback(uint8_t reason);
// Initialization
void _watch_init() {
// disable the LED pin (it may have been enabled by the bootloader)
watch_disable_digital_output(RED);
// Use switching regulator for lower power consumption.
SUPC->VREG.bit.SEL = 1;
while(!SUPC->STATUS.bit.VREGRDY);