Skip to content

Commit 54d25e1

Browse files
committed
updated with sock
1 parent 33126d5 commit 54d25e1

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

HaH_midi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const int MODE_LIGHT_WAIT_TIME = 1000;
6666
const int MODE_LIGHT_FLASH_TIME = 100;
6767

6868
//EX Pot Calibration Constants
69-
const int POT_EX_START_VAL = 100;
69+
const int POT_EX_START_VAL = 375;
7070
const int POT_EX_END_VAL = 850;
7171

7272
// Other

HaH_midi.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ void loop() {
411411

412412
// Potentiometer EX
413413
int potValueEx = analogRead(POT_EX);
414-
byte ccValueEx = map(potValueEx, POT_EX_START_VAL, POT_EX_END_VAL, 0, 127);
414+
int ccValueEx = map(potValueEx, POT_EX_START_VAL, POT_EX_END_VAL, 0, 127);
415+
ccValueEx = constrain(ccValueEx, 0, 127);
415416

416417
if (abs(potValueEx - lastPotValueEx) > POT_THRESHOLD) {
417418

Images/HaH_main.jpg

435 KB
Loading

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ For more detailed functionality see the "Usage Documentation" folder.
4040
- Tape
4141
- Macbook Box for structure and button covers
4242
- Lego for pedal
43+
- Trampoline Park Sock fir grip on pedal
4344
## Configuration
4445
- **Debounce Time (`DEBOUNCETIME`)**: Adjusts the debounce delay in milliseconds.
4546
- **Potentiometer Calibration (`POT_EX_START_VAL`, `POT_EX_END_VAL`)**: Defines the sensitivity range for the main potentiometer.

0 commit comments

Comments
 (0)