From 595c3cb881c14a28d37a8a9a3e4aadc79285a673 Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Sat, 5 Feb 2022 18:37:05 +0000 Subject: deploy: c74cacd34f68f2897fbd63e2ba90831f87cbad49 --- group__led.html | 59 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 30 deletions(-) (limited to 'group__led.html') diff --git a/group__led.html b/group__led.html index f21e92c1..99419fbb 100644 --- a/group__led.html +++ b/group__led.html @@ -2,8 +2,8 @@ - - + + Sensor Watch: LED Control @@ -19,10 +19,9 @@
- - + @@ -31,21 +30,22 @@
-
Sensor Watch -  0.0.0 +
+
Sensor Watch 0.0.0
A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
- + +/* @license-end */ + @@ -65,15 +65,14 @@ $(function() {
-
-
LED Control
+
LED Control

This section covers functions related to the bi-color red/green LED mounted behind the LCD. More...

- @@ -93,22 +92,22 @@ Functions - + - -

+

Functions

void watch_enable_leds (void)
 Enables the bi-color LED. More...
void watch_set_led_yellow (void)
 Sets both red and green LEDs to full brightness. More...
 
-void watch_set_led_off (void)
+void watch_set_led_off (void)
 Turns both the red and the green LEDs off.
 
+
 __attribute__ ((deprecated("Use watch_enable_leds instead"))) void watch_enable_led(bool unused)
 
+
 __attribute__ ((deprecated("Use watch_disable_leds instead"))) void watch_disable_led(bool unused)
 

Detailed Description

-

This section covers functions related to the bi-color red/green LED mounted behind the LCD.

-

The SAM L22 is an exceedingly power efficient chip, whereas the LED's are relatively power- hungry. The green LED, at full power, consumes more power than the whole chip in active mode, and the red LED consumes about twelve times as much power! The LED's should thus be used only sparingly in order to preserve battery life.

Note
Some watches use a red/blue LED instead of a red/green LED. You will be able to determine this easily when you double tap the reset button: if the pulsing bootloader LED is red, you have a red/green edition; if it is blue, you have a red/blue edition. For red/blue watches, build your project with the command make LED=BLUE, and the watch library will automatically swap the pins so that watch_set_led_red sets the red LED, and watch_set_led_green sets the blue one.
+

This section covers functions related to the bi-color red/green LED mounted behind the LCD.

+

The SAM L22 is an exceedingly power efficient chip, whereas the LED's are relatively power- hungry. The green LED, at full power, consumes more power than the whole chip in active mode, and the red LED consumes about twelve times as much power! The LED's should thus be used only sparingly in order to preserve battery life.

Note
Some watches use a red/blue LED instead of a red/green LED. You will be able to determine this easily when you double tap the reset button: if the pulsing bootloader LED is red, you have a red/green edition; if it is blue, you have a red/blue edition. For red/blue watches, build your project with the command make LED=BLUE, and the watch library will automatically swap the pins so that watch_set_led_red sets the red LED, and watch_set_led_green sets the blue one.

Function Documentation

- +

◆ watch_disable_leds()

@@ -129,7 +128,7 @@ void  +

◆ watch_enable_leds()

- +

◆ watch_set_led_yellow()

-- cgit v1.2.3