Sylvain Munaut | 26bc465 | 2020-09-14 10:19:49 +0200 | [diff] [blame] | 1 | /* |
2 | * led.h | ||||
3 | * | ||||
4 | * Copyright (C) 2019-2020 Sylvain Munaut <tnt@246tNt.com> | ||||
5 | * SPDX-License-Identifier: LGPL-3.0-or-later | ||||
6 | */ | ||||
7 | |||||
8 | #pragma once | ||||
9 | |||||
10 | #include <stdbool.h> | ||||
11 | |||||
12 | void led_init(void); | ||||
13 | void led_color(uint8_t r, uint8_t g, uint8_t b); | ||||
14 | void led_state(bool on); | ||||
15 | void led_blink(bool enabled, int on_time_ms, int off_time_ms); | ||||
16 | void led_breathe(bool enabled, int rise_time_ms, int fall_time_ms); |