1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00
Files
2025-03-12 18:15:38 +07:00

59 lines
1.7 KiB
C

/*
SK6805 FlipperZero driver
Copyright (C) 2022-2023 Victor Nikitchuk (https://github.com/quen0n)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef SK6805_H_
#define SK6805_H_
#include <furi.h>
/**
* @brief Инициализация линии управления подсветкой
*/
void SK6805_init(void);
/**
* @brief Получить количество светодиодов в подсветке
*
* @return Количество светодиодов
*/
uint8_t SK6805_get_led_count(void);
/**
* @brief Установить цвет свечения светодиода
*
* @param led_index номер светодиода (от 0 до SK6805_get_led_count())
* @param r значение красного (0-255)
* @param g значение зелёного (0-255)
* @param b значение синего (0-255)
*/
void SK6805_set_led_color(uint8_t led_index, uint8_t r, uint8_t g, uint8_t b);
/**
* @brief Обновление состояния подсветки дисплея
*/
void SK6805_update(void);
#endif /* SK6805_H_ */
#ifdef __cplusplus
}
#endif