mirror of
https://github.com/litruv/BigKnob.git
synced 2026-07-24 02:36:12 +10:00
Updated Readme + easy config for step sizes.
This commit is contained in:
13
BigKnob.ino
13
BigKnob.ino
@@ -1,6 +1,11 @@
|
||||
#define BOUNCE_LOCK_OUT
|
||||
#include <Bounce2.h>
|
||||
#include <Rotary.h>
|
||||
|
||||
//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]) {
|
||||
|
||||
39
README.md
39
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
|
||||
|
||||
|
||||
<img src="https://i.imgur.com/eoUi0Af.jpg" />
|
||||
|
||||

|
||||
|
||||
## Usage
|
||||
## Download
|
||||
|
||||
Download + extract the repo to a local folder.
|
||||
##### Windows
|
||||
@@ -35,4 +34,38 @@ Download + extract the repo to a local folder.
|
||||
------------
|
||||
[](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
|
||||

|
||||
|
||||
Change the USB type to Serial + MIDI
|
||||

|
||||
|
||||
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/
|
||||
|
||||
Reference in New Issue
Block a user