Merge branch 'main' into platformio

This commit is contained in:
Paul Vakhrushev
2021-03-01 22:36:33 +00:00
committed by GitHub
24 changed files with 685 additions and 508 deletions

View File

@@ -41,12 +41,12 @@ int mapFF(byte x, byte min, byte max) {
const char OTAhost[] = "http://ota.alexgyver.ru/";
const char *OTAfile[] = {
"GL2_latest.bin",
"com_600.bin",
"com_1200.bin",
"esp1_600.bin",
"esp1_1200.bin",
"module_600.bin",
"module_1200.bin",
"com_300.bin",
"com_900.bin",
"esp1_300.bin",
"esp1_900.bin",
"module_300.bin",
"module_900.bin",
};
const char NTPserver[] = "pool.ntp.org";
@@ -56,6 +56,7 @@ const char NTPserver[] = "pool.ntp.org";
//"ntp2.stratum2.ru"
//"ntp.msk-ix.ru"
#define PAL_SIZE 49
struct Palette {
byte size = 1;
byte strip[16 * 3];
@@ -120,6 +121,7 @@ struct Preset {
byte rnd = 0; // случайный (0/1)
};
#define DAWN_SIZE 23
struct Dawn {
byte state[7] = {0, 0, 0, 0, 0, 0, 0}; // (1/0)
byte hour[7] = {0, 0, 0, 0, 0, 0, 0}; // (0.. 59)
@@ -127,3 +129,9 @@ struct Dawn {
byte bright = 100; // (0.. 255)
byte time = 1; // (5,10,15,20..)
};
/*
- Каждые 5 минут лампа AP отправляет время (день час минута) на Local лампы всех ролей в сети с ней (GL,6,день,час,мин)
- Если включен АЦП, Мастер отправляет своей группе данные с него на каждой итерации отрисовки эффектов (GL,1,длина,масштаб,яркость)
- Установка времени с мобилы - получают все роли АР и Local (не получившие ntp)
*/