Translate russian rgb backlight comments

This commit is contained in:
Willy-JL
2023-08-15 03:49:16 +02:00
parent d29a02f6e6
commit ee7260d45f
3 changed files with 10 additions and 9 deletions

View File

@@ -22,7 +22,7 @@
#define TAG "SK6805"
/* Настройки */
#define SK6805_LED_PIN &led_pin //Порт подключения светодиодов
#define SK6805_LED_PIN &led_pin // LED connection port
#ifdef FURI_DEBUG
#define DEBUG_PIN &gpio_ext_pa7
@@ -61,11 +61,11 @@ void SK6805_update(void) {
SK6805_init();
furi_kernel_lock();
uint32_t end;
/* Последовательная отправка цветов светодиодов */
// Sequential sending LEDs
for(uint8_t lednumber = 0; lednumber < SK6805_LED_COUNT; lednumber++) {
//Последовательная отправка цветов светодиода
// Sequential sending colors
for(uint8_t color = 0; color < 3; color++) {
//Последовательная отправка битов цвета
// Sequentially sending color bits
uint8_t i = 0b10000000;
while(i != 0) {
if(led_buffer[lednumber][color] & (i)) {

View File

@@ -94,7 +94,7 @@ void rgb_backlight_reconfigure(bool enabled) {
}
void rgb_backlight_load_settings(void) {
//Не загружать данные из внутренней памяти при загрузке в режиме DFU
// Do not load data from internal memory when booting in DFU mode
if(!furi_hal_is_normal_boot() || rgb_state.settings_loaded) {
rgb_state.settings_loaded = true;
return;

View File

@@ -1,6 +1,7 @@
/*
RGB backlight FlipperZero driver
Copyright (C) 2022-2023 Victor Nikitchuk (https://github.com/quen0n)
Heavily modified by Willy-JL and Z3bro
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
@@ -39,12 +40,12 @@ typedef enum {
void rgb_backlight_reconfigure(bool enabled);
/**
* @brief Загрузить настройки подсветки с SD-карты
* @brief Load backlight settings from SD card
*/
void rgb_backlight_load_settings();
/**
* @brief Сохранить текущие настройки RGB-подсветки
* @brief Save Current RGB Lighting Settings
*/
void rgb_backlight_save_settings();
@@ -86,9 +87,9 @@ void rgb_backlight_set_rainbow_interval(uint32_t rainbow_interval);
uint32_t rgb_backlight_get_rainbow_interval();
/**
* @brief Применить текущие настройки RGB-подсветки
* @brief Apply current RGB lighting settings
*
* @param brightness Яркость свечения (0-255)
* @param brightness Backlight intensity (0-255)
* @param tick Whether this update was a tick (for rainbow)
*/
void rgb_backlight_update(uint8_t brightness, bool tick);