From ce9bfb3e5d027252c5c0c37ec1c4645b98e393e1 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 17 Dec 2022 11:33:19 -0500 Subject: Velocity: Set brightness when you push velocity buttons --- HexBoard_V1.1.ino | 3 +++ 1 file changed, 3 insertions(+) (limited to 'HexBoard_V1.1.ino') diff --git a/HexBoard_V1.1.ino b/HexBoard_V1.1.ino index f76f38d..7741d76 100644 --- a/HexBoard_V1.1.ino +++ b/HexBoard_V1.1.ino @@ -357,16 +357,19 @@ void commandPress(byte command) { midiVelocity = 100; setCMD_LEDs(); strip.setPixelColor(cmdBtn1, strip.ColorHSV(65536 / 12, 255, defaultBrightness)); + strip.setBrightness(255); // Set BRIGHTNESS (max = 255) } if (command == CMDB_2) { midiVelocity = 60; setCMD_LEDs(); strip.setPixelColor(cmdBtn2, strip.ColorHSV(65536 / 3, 255, defaultBrightness)); + strip.setBrightness(127); // Set BRIGHTNESS (max = 255) } if (command == CMDB_3) { midiVelocity = 20; setCMD_LEDs(); strip.setPixelColor(cmdBtn3, strip.ColorHSV(65536 / 2, 255, defaultBrightness)); + strip.setBrightness(63); // Set BRIGHTNESS (max = 255) } if (command == CMDB_4) { } -- cgit 1.4.1