blob: a48c8d27fdc41eb7490bbdc175bd154599c7fab6 [file] [log] [blame]
Sylvain Munaut26bc4652020-09-14 10:19:49 +02001/*
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
12void led_init(void);
13void led_color(uint8_t r, uint8_t g, uint8_t b);
14void led_state(bool on);
15void led_blink(bool enabled, int on_time_ms, int off_time_ms);
16void led_breathe(bool enabled, int rise_time_ms, int fall_time_ms);