Skip to content

Commit

Permalink
Convert 10 bit analog input to 7 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
atulrnt authored Jul 30, 2020
1 parent d955f3d commit f585638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mental-noise-synapse/mental-noise-synapse.ino
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void handleControls() {
continue;
}

controlValue = ccInputs[i].getValue();
controlValue = map(ccInputs[i].getValue(), 0, 1023, 0, 127);

if (controlValue < 5) {
controlValue = defaultControlValue;
Expand Down

0 comments on commit f585638

Please sign in to comment.