Add HASP_START_DIM, HASP_START_PAGE and HASP_THEME_ID

This commit is contained in:
fvanroie 2022-12-12 20:45:11 +01:00
parent 867a4c338a
commit 95b28eb222
2 changed files with 15 additions and 3 deletions

View File

@ -78,9 +78,9 @@ static uint16_t sleepTimeShort = 60; // 1 second resolution
static uint16_t sleepTimeLong = 120; // 1 second resolution
static uint32_t sleepTimeOffset = 0; // 1 second resolution
uint8_t haspStartDim = 255;
uint8_t haspStartPage = 1;
uint8_t haspThemeId = 2;
uint8_t haspStartDim = HASP_START_DIM;
uint8_t haspStartPage = HASP_START_PAGE;
uint8_t haspThemeId = HASP_THEME_ID;
uint16_t haspThemeHue = 200;
lv_color_t color_primary = lv_color_hsv_to_rgb(200, 100, 100);
lv_color_t color_secondary = lv_color_hsv_to_rgb(200, 100, 100);

View File

@ -10,6 +10,18 @@
#include "hasplib.h"
#ifndef HASP_START_DIM
#define HASP_START_DIM 255
#endif
#ifndef HASP_START_PAGE
#define HASP_START_PAGE 1
#endif
#ifndef HASP_THEME_ID
#define HASP_THEME_ID 2
#endif
#if HASP_USE_DEBUG > 0
#include "../hasp_debug.h"
#include "dev/device.h"