summaryrefslogtreecommitdiffstats
path: root/watch-library/watch
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-08-14 19:15:51 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-08-14 19:15:51 -0400
commitefd75d25049c0ca389ddd47ba6f2e16ef540f9bc (patch)
treeee0e27bab6b323088b08090614066cefe1e6482e /watch-library/watch
parent7caa6ff19ad6913481c139b89099f8c07966d000 (diff)
downloadSensor-Watch-efd75d25049c0ca389ddd47ba6f2e16ef540f9bc.tar.gz
Sensor-Watch-efd75d25049c0ca389ddd47ba6f2e16ef540f9bc.tar.bz2
Sensor-Watch-efd75d25049c0ca389ddd47ba6f2e16ef540f9bc.zip
led tweaks
Diffstat (limited to 'watch-library/watch')
-rw-r--r--watch-library/watch/watch.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/watch-library/watch/watch.c b/watch-library/watch/watch.c
index d3e32d5c..811ebab6 100644
--- a/watch-library/watch/watch.c
+++ b/watch-library/watch/watch.c
@@ -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);
@@ -308,8 +311,8 @@ void watch_set_led_yellow() {
if (PWM_0_enabled) {
watch_set_led_color(65535, 65535);
} else {
- watch_set_pin_level(RED, true);
- watch_set_pin_level(GREEN, true);
+ watch_set_pin_level(RED, true);
+ watch_set_pin_level(GREEN, true);
}
}