mirror of
https://github.com/AlexGyver/GyverLamp2.git
synced 2025-08-09 01:20:59 +03:00
v0.15b
This commit is contained in:
@@ -84,12 +84,12 @@ const char WiFiPassword[] = "12345678";
|
|||||||
//#define SKIP_WIFI // пропустить подключение к вафле (для отладки)
|
//#define SKIP_WIFI // пропустить подключение к вафле (для отладки)
|
||||||
|
|
||||||
// ------------ БИЛДЕР -------------
|
// ------------ БИЛДЕР -------------
|
||||||
#define MAX_LEDS 1200
|
//#define MAX_LEDS 1200
|
||||||
|
|
||||||
// esp01
|
// esp01
|
||||||
#define BTN_PIN 0
|
//#define BTN_PIN 0
|
||||||
#define STRIP_PIN 2
|
//#define STRIP_PIN 2
|
||||||
#define USE_ADC 0
|
//#define USE_ADC 0
|
||||||
|
|
||||||
// GL2 module
|
// GL2 module
|
||||||
//#define STRIP_PIN 5 // GPIO5 на gl module (D1 на wemos/node)
|
//#define STRIP_PIN 5 // GPIO5 на gl module (D1 на wemos/node)
|
||||||
|
@@ -17,7 +17,7 @@ void fire2020(byte scale, int len) {
|
|||||||
if (loading) {
|
if (loading) {
|
||||||
loading = false;
|
loading = false;
|
||||||
//deltaValue = (((scale - 1U) % 11U + 1U) << 4U) - 8U; // ширина языков пламени (масштаб шума Перлина)
|
//deltaValue = (((scale - 1U) % 11U + 1U) << 4U) - 8U; // ширина языков пламени (масштаб шума Перлина)
|
||||||
deltaValue = map(scale, 0, 255, 8, 168);
|
deltaValue = map(255-scale, 0, 255, 8, 168);
|
||||||
deltaHue = map(deltaValue, 8U, 168U, 8U, 84U); // высота языков пламени должна уменьшаться не так быстро, как ширина
|
deltaHue = map(deltaValue, 8U, 168U, 8U, 84U); // высота языков пламени должна уменьшаться не так быстро, как ширина
|
||||||
step = map(255U - deltaValue, 87U, 247U, 4U, 32U); // вероятность смещения искорки по оси ИКС
|
step = map(255U - deltaValue, 87U, 247U, 4U, 32U); // вероятность смещения искорки по оси ИКС
|
||||||
for (uint8_t j = 0; j < cfg.length; j++) {
|
for (uint8_t j = 0; j < cfg.length; j++) {
|
||||||
|
Reference in New Issue
Block a user