brightness

This commit is contained in:
folkert van heusden 2022-03-26 15:30:52 +01:00
parent ebaf6393c3
commit 392a2ed696

View file

@ -58,15 +58,15 @@ void console_esp32::panel_update_thread()
pixels.clear(); pixels.clear();
pixels.setBrightness(48);
pixels.show(); pixels.show();
const uint32_t magenta = pixels.Color(255, 0, 255); constexpr uint8_t brightness = 32;
const uint32_t red = pixels.Color(255, 0, 0); const uint32_t magenta = pixels.Color(brightness, 0, brightness);
const uint32_t green = pixels.Color(0, 255, 0); const uint32_t red = pixels.Color(brightness, 0, 0);
const uint32_t blue = pixels.Color(0, 0, 255); const uint32_t green = pixels.Color(0, brightness, 0);
const uint32_t yellow = pixels.Color(255, 255, 0); const uint32_t blue = pixels.Color(0, 0, brightness);
const uint32_t white = pixels.Color(255, 255, 255, 255); const uint32_t yellow = pixels.Color(brightness, brightness, 0);
const uint32_t white = pixels.Color(brightness, brightness, brightness, brightness);
const uint32_t run_mode_led_color[4] = { red, yellow, blue, green }; const uint32_t run_mode_led_color[4] = { red, yellow, blue, green };