This commit is contained in:
Alex
2021-02-23 19:50:19 +03:00
parent e22923b49d
commit 23d2840743
2 changed files with 5 additions and 5 deletions

View File

@@ -84,12 +84,12 @@ const char WiFiPassword[] = "12345678";
//#define SKIP_WIFI // пропустить подключение к вафле (для отладки)
// ------------ БИЛДЕР -------------
#define MAX_LEDS 1200
//#define MAX_LEDS 1200
// esp01
#define BTN_PIN 0
#define STRIP_PIN 2
#define USE_ADC 0
//#define BTN_PIN 0
//#define STRIP_PIN 2
//#define USE_ADC 0
// GL2 module
//#define STRIP_PIN 5 // GPIO5 на gl module (D1 на wemos/node)

View File

@@ -17,7 +17,7 @@ void fire2020(byte scale, int len) {
if (loading) {
loading = false;
//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); // высота языков пламени должна уменьшаться не так быстро, как ширина
step = map(255U - deltaValue, 87U, 247U, 4U, 32U); // вероятность смещения искорки по оси ИКС
for (uint8_t j = 0; j < cfg.length; j++) {