Updated Readme + easy config for step sizes.

This commit is contained in:
2018-09-01 20:29:27 +10:00
parent ab3e2e6319
commit f9340633c8
2 changed files with 45 additions and 7 deletions

View File

@@ -1,6 +1,11 @@
#define BOUNCE_LOCK_OUT #define BOUNCE_LOCK_OUT
#include <Bounce2.h> #include <Bounce2.h>
#include <Rotary.h> #include <Rotary.h>
//Knob Steps
int SmallKnob = 6;
int BigKnob = 1;
//PINS //PINS
// -- Switch -- // -- Switch --
@@ -179,17 +184,17 @@ void checkDials() {
encoder1result = encoder1.process(); encoder1result = encoder1.process();
if (encoder1result) { if (encoder1result) {
if (encoder1result == DIR_CW) if (encoder1result == DIR_CW)
val[state] = min(val[state] + 6, 128); val[state] = min(val[state] + SmallKnob, 128);
else else
val[state] = max(val[state] - 6, 0); val[state] = max(val[state] - SmallKnob, 0);
} }
encoder2result = encoder2.process(); encoder2result = encoder2.process();
if (encoder2result) { if (encoder2result) {
if (encoder2result == DIR_CW) if (encoder2result == DIR_CW)
val[state] = min(val[state] + 1, 128); val[state] = min(val[state] + BigKnob, 128);
else else
val[state] = max(val[state] - 1, 0); val[state] = max(val[state] - BigKnob, 0);
} }
if (val[state] != lastval[state]) { if (val[state] != lastval[state]) {

View File

@@ -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 - 1x 3.5mm TRS Jack for footpedal
<img src="https://i.imgur.com/eoUi0Af.jpg" />
![test](https://github.com/favicon.ico | width=48) ## Download
## Usage
Download + extract the repo to a local folder. Download + extract the repo to a local folder.
##### Windows ##### 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") [![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/