Skip to content

Commit

Permalink
Correct volume percent mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyort committed Mar 26, 2020
1 parent 204cbe2 commit 76779c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e-vent.ino
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void readPots(){
Tex = period - Tin;
Vin = Volume/Tin; // Velocity in clicks/s

displ.writeVolume(100 * Volume/VOL_MAX);
displ.writeVolume(map(Volume, VOL_MIN, VOL_MAX, 0, 100));
displ.writeBPM(bpm);
displ.writeIEratio(ie);
if(DEBUG){
Expand Down

0 comments on commit 76779c9

Please sign in to comment.