about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-12-17 11:33:19 -0500
committerZach DeCook <zachdecook@librem.one>2022-12-17 11:33:19 -0500
commitce9bfb3e5d027252c5c0c37ec1c4645b98e393e1 (patch)
treefe3318a79cf2861bb52aec2d0ce19323573efd44
parent1e5531d6b4eee8769c0cd1c76ed4fa6510dfa4bc (diff)
downloadHexBoard-ce9bfb3e5d027252c5c0c37ec1c4645b98e393e1.tar.gz
Velocity: Set brightness when you push velocity buttons
-rw-r--r--HexBoard_V1.1.ino3
1 files changed, 3 insertions, 0 deletions
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) {
   }