Fix neopixel flickering

This commit is contained in:
Dejvino
2026-02-20 07:13:16 +01:00
parent 46ecc57cde
commit 4fd9e1b3e9
2 changed files with 11 additions and 4 deletions
+2 -1
View File
@@ -7,7 +7,7 @@
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
#define SCREEN_ADDRESS 0x3C
#define PIN_NEOPIXEL 16
#define PIN_NEOPIXEL 2
#define NUM_PIXELS 64
UIManager ui;
@@ -29,6 +29,7 @@ void UIManager::begin() {
display.display();
// Setup NeoPixel Matrix
pixels.setPin(PIN_NEOPIXEL);
pixels.begin();
pixels.setBrightness(40);
pixels.clear();