diff --git a/BigKnob.ino b/BigKnob.ino index 078b42c..e4e5ea2 100644 --- a/BigKnob.ino +++ b/BigKnob.ino @@ -1,6 +1,11 @@ #define BOUNCE_LOCK_OUT #include #include + +//Knob Steps +int SmallKnob = 6; +int BigKnob = 1; + //PINS // -- Switch -- @@ -179,17 +184,17 @@ void checkDials() { encoder1result = encoder1.process(); if (encoder1result) { if (encoder1result == DIR_CW) - val[state] = min(val[state] + 6, 128); + val[state] = min(val[state] + SmallKnob, 128); else - val[state] = max(val[state] - 6, 0); + val[state] = max(val[state] - SmallKnob, 0); } encoder2result = encoder2.process(); if (encoder2result) { if (encoder2result == DIR_CW) - val[state] = min(val[state] + 1, 128); + val[state] = min(val[state] + BigKnob, 128); else - val[state] = max(val[state] - 1, 0); + val[state] = max(val[state] - BigKnob, 0); } if (val[state] != lastval[state]) { diff --git a/README.md b/README.md index 692f425..a5dbbdc 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,9 @@ This is the main firmware for the J6 Bigknob USB-MIDI controller, based on the T - 1x 3.5mm TRS Jack for footpedal + -![test](https://github.com/favicon.ico | width=48) - -## Usage +## Download Download + extract the repo to a local folder. ##### Windows @@ -35,4 +34,38 @@ Download + extract the repo to a local folder. ------------ [![Download Repo Zip](https://i.imgur.com/Ij76c4Q.png "Download Repo Zip")](https://i.imgur.com/Ij76c4Q.png "Download Repo Zip") +## Usage +Download + Install **Arduino IDE** +https://www.arduino.cc/en/Main/Software + +Download + Install **Teensyduino** +https://www.pjrc.com/teensy/td_download.html + +Open **BigKnob.ino** in **Arduino IDE** + +Edit knob steps as needed (steps per tick) +``` +//Knob Steps +int SmallKnob = 6; +int BigKnob = 1; +``` + +Change the board type to Teensy LC +![](https://i.imgur.com/QVNE8Xh.png) + +Change the USB type to Serial + MIDI +![](https://i.imgur.com/cNiXUd4.png) + +Might need to change port (I don't need to for mine) + +Upload. + +## Acknowledgements +Portions of this software were developed at http://www.pjrc.com/ +Those portions licensed under MIT License Agreement, (the "License"); You may not use these files except in compliance with the License. +You may obtain a copy of the License at: http://opensource.org/licenses/MIT +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions +and limitations under the License. +Portions Copyright (c) 2012-2018 http://www.pjrc.com/