Color definitions for LCD display.
More...
#include <stdint.h>
Go to the source code of this file.
|
| static uint16_t | temp_display_color (int16_t value) |
| | determine the color of the text based on celcius temperature
|
| |
|
| static constexpr uint16_t | WHITE = 65535 |
| |
| static constexpr uint16_t | DARK_GRAY = 33808 |
| |
| static constexpr uint16_t | LIGHT_GRAY = 57051 |
| |
| static constexpr uint16_t | BLUE = 991 |
| |
| static constexpr uint16_t | MUTED_BLUE = 2278 |
| |
| static constexpr uint16_t | GREEN = 1632 |
| |
| static constexpr uint16_t | MUTED_GREEN = 2369 |
| |
| static constexpr uint16_t | BLACK = 0 |
| |
| static constexpr uint16_t | RED = 63878 |
| |
| static constexpr uint16_t | MUTED_RED = 12418 |
| |
| static constexpr uint16_t | YELLOW = 65252 |
| |
| static constexpr uint16_t | MUTED_YELLOW = 12642 |
| |
| static constexpr uint16_t | TEMP_CRITICAL = 60 |
| |
| static constexpr uint16_t | TEMP_WARNING = 50 |
| |
Color definitions for LCD display.
- Author
- Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
◆ temp_display_color()
| static uint16_t temp_display_color |
( |
int16_t | value | ) |
|
|
inlinestatic |
determine the color of the text based on celcius temperature
- Parameters
-
| value | current temperature value in celcius |
| warning_threshold | warning temperature threshold in celcius |
| critical_threshold | critical temperature threshold in celcius |
- Returns
- uint16_t color value
◆ BLACK
◆ BLUE
◆ DARK_GRAY
| uint16_t DARK_GRAY = 33808 |
|
staticconstexpr |
◆ GREEN
◆ LIGHT_GRAY
| uint16_t LIGHT_GRAY = 57051 |
|
staticconstexpr |
◆ MUTED_BLUE
| uint16_t MUTED_BLUE = 2278 |
|
staticconstexpr |
◆ MUTED_GREEN
| uint16_t MUTED_GREEN = 2369 |
|
staticconstexpr |
◆ MUTED_RED
| uint16_t MUTED_RED = 12418 |
|
staticconstexpr |
◆ MUTED_YELLOW
| uint16_t MUTED_YELLOW = 12642 |
|
staticconstexpr |
◆ RED
◆ TEMP_CRITICAL
| uint16_t TEMP_CRITICAL = 60 |
|
staticconstexpr |
◆ TEMP_WARNING
| uint16_t TEMP_WARNING = 50 |
|
staticconstexpr |
◆ WHITE
◆ YELLOW