From 34bf5e1c54768ea627236f31f2dbc8dd7997be02 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Fri, 27 Dec 2024 13:35:44 +0100 Subject: [PATCH] speed up the rain --- nametag/src/main.cpp | 2 +- nametag/src/rain.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nametag/src/main.cpp b/nametag/src/main.cpp index a5f7162..d9e5354 100644 --- a/nametag/src/main.cpp +++ b/nametag/src/main.cpp @@ -14,7 +14,7 @@ MatrixPanel_I2S_DMA *matrix = nullptr; Mode mode = HighVis; -DisplayStyle style = Supercomputer; +DisplayStyle style = Rain; void setup(){ pinMode(ONBOARD_LED, OUTPUT); diff --git a/nametag/src/rain.cpp b/nametag/src/rain.cpp index e3b63f2..d10b56a 100644 --- a/nametag/src/rain.cpp +++ b/nametag/src/rain.cpp @@ -68,9 +68,9 @@ void draw_rain(MatrixPanel_I2S_DMA *matrix, Mode mode) { raindrops.push_back({ false, raindrops[r].x, - 0 - random(8), + 0 - random(4), random(20, 28), - random(0, 76), + random(0, 55), millis() }); raindrops.erase(raindrops.begin() + r);