Add support for night mode

This commit is contained in:
2020-11-19 18:05:49 +01:00
parent 0f2dca5ec7
commit 8b47ed295e
12 changed files with 173 additions and 30 deletions

View File

@@ -3,12 +3,24 @@
#include <avr/eeprom.h>
#include <avr/pgmspace.h>
#include "time.h"
#define LED_BRIGHTNESS 127
#define AUTO_BTNES_SIZE 4
#define LED_BRIGHTNESS 7
#define NIGHT_MODE { -1, { 0, 0 }, { 0, 0 } }
struct NIGHTM_CFG
{
int8_t led_btnes;
struct TIME_HM begin;
struct TIME_HM end;
};
struct CFG
{
uint8_t led_brightness;
struct NIGHTM_CFG night_mode;
};
extern struct CFG ram_cfg;