diff options
| author | Jan Sucan <sucanjan@fit.cvut.cz> | 2019-09-22 21:17:50 +0200 |
|---|---|---|
| committer | Jan Sucan <sucanjan@fit.cvut.cz> | 2019-09-22 21:17:50 +0200 |
| commit | cefd0601b91fa642163c82021d454b3c17d8adf4 (patch) | |
| tree | 0470eaa5d2186905f439c10e2bea8e86020d5cbe /FanController/fan_controller/hw/led.h | |
Initial commit
Diffstat (limited to 'FanController/fan_controller/hw/led.h')
| -rw-r--r-- | FanController/fan_controller/hw/led.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/FanController/fan_controller/hw/led.h b/FanController/fan_controller/hw/led.h new file mode 100644 index 0000000..3698243 --- /dev/null +++ b/FanController/fan_controller/hw/led.h @@ -0,0 +1,32 @@ +/* Autor: Ján Sučan <jan@jansucan.sk> + * + * Zdrojove kody, ich casti a subory z nich vzniknute priamo alebo nepriamo + * (objektove subory, Intel Hex, ...) prosim nepouzivajte komercne, ani ako + * sucast komercnych diel. Vsetky ostatne pripady pouzitia su dovolene. + * + * Please don't use the source codes, their parts and files created from them + * directly or indirectly, (object files, Intel Hex files, ...) for commercial + * purposes, not even as a part of commercial products. All other use cases + * are allowed. + */ + +#ifndef LED_H_ +#define LED_H_ + +#include <stdint.h> +#include <stdbool.h> + +/** Pocet LED v stlpci zelenych LED pre indikaciu otacok. LED najviac nalavo nie je zapocitana. */ +#define LED_GREEN_BAR_LED_COUNT 8U + +void led_init(void); +void led_red_off(void); +void led_red_on(void); +void led_min_green_off(void); +void led_min_green_set(uint8_t light); +void led_min_green_on(void); +void led_green_bar_show_by_mask(uint8_t mask); +bool led_green_bar_will_be_changed_by_value(uint8_t value); +void led_green_bar_show_by_value(uint8_t value); + +#endif /* LED_H_ */
\ No newline at end of file |
