osmo-e1-hardware/firmware/ice40-riscv/common/led.h

17 lines
388 B
C

/*
* led.h
*
* Copyright (C) 2019-2020 Sylvain Munaut <tnt@246tNt.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
#pragma once
#include <stdbool.h>
void led_init(void);
void led_color(uint8_t r, uint8_t g, uint8_t b);
void led_state(bool on);
void led_blink(bool enabled, int on_time_ms, int off_time_ms);
void led_breathe(bool enabled, int rise_time_ms, int fall_time_ms);