Replies: 11 comments 13 replies
-
|
The shift button from the keyboard does not work, maybe you can use the encoder button as a shift button. The library is not limited in the number of the encoders. |
Beta Was this translation helpful? Give feedback.
-
|
I merged the sketch fader wing with sketch box3 and the ide gives no errors. As for the button debouncing I couldn't figure out where it's nested; in my first experience I used millis and set 5 MS for debouncing; how is this thought here? (I'm a newbie, thanks for your patience). |
Beta Was this translation helpful? Give feedback.
-
|
For debouncing us 100nF caps. For sending data only the is a small library https://github.com/sstaub/OSC |
Beta Was this translation helpful? Give feedback.
-
|
You should post the code and the error messages, without I can't help you. The next version will allow you that you can only use the fader, but the release will need some time. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, #include <SLIPEncodedUSBSerial.h> /************************************************************************************************************** #define FADER_1_LEVELER A0 /************************************************************************************************************** #define FADER_PAGE 30 // fader page on EOS / Nomad const String HANDSHAKE_QUERY = "ETCOSC?"; /************************************************************************************************************** /************************************************************************************************************** EOS eos; /************************************************************************************************************** void initEOS() { int buttonPins[40] = }; /************************************************************************************************************** bool buttonState[40] = /************************************************************************************************************** unsigned long buttonTimers[40] /************************************************************************************************************** const String buttonDowns[40] /A/"/eos/cue/50/1/fire", /D/"/eos/cue/50/4/fire", /G/"eos/key/go", /L/"/eos/cue/50/7/fire", /J/"eos/sub/755/full", /s1/"eos/macro/9101/fire", //macro in background con snapshot /s2/"eos/macro/9102/fire", /s4/"eos/macro/9104/fire", /*1 */"/eos/cue/22/1/fire", }; /************************************************************************************************************** const String buttonUps[40] /A/"eos/cue/50/0/fire", /D/"eos/cue/50/0/fire", /G/"", /L/"eos/cue/50/0/fire", /J/"eos/sub/755/out", /s1/"", /s2/"eos/macro/9113/fire", /s4/"", /*1 */"", }; /************************************************************************************************************** int keyBounce = 5; void parseOSCMessage(String& msg) /******************************************************************************* // this is necessary for reconnecting a device because it needs some time for (int i = 0; i < 40; i++) pinMode(buttonPins[i], INPUT_PULLUP); /******************************************************************************* fader1.update(); // Check to see if any OSC commands have come from Eos that we need to respond to. // Send a ping every second. code with errors #include <SLIPEncodedUSBSerial.h> /************************************************************************************************************** #define FADER_1_LEVELER A0 #define FADER_2_LEVELER A1 #define FADER_3_LEVELER A2 #define FADER_4_LEVELER A3 #define FADER_5_LEVELER A4 #define FADER_6_LEVELER A5 /************************************************************************************************************** #define FADER_PAGE 30 // fader page on EOS / Nomad const String HANDSHAKE_QUERY = "ETCOSC?"; /************************************************************************************************************** /************************************************************************************************************** EOS eos; /************************************************************************************************************** void initEOS() { int buttonPins[40] = }; /************************************************************************************************************** bool buttonState[40] = /************************************************************************************************************** unsigned long buttonTimers[40] /************************************************************************************************************** const String buttonDowns[40] /A/"/eos/cue/50/1/fire", /D/"/eos/cue/50/4/fire", /G/"eos/key/go", /L/"/eos/cue/50/7/fire", /J/"eos/sub/755/full", /s1/"eos/macro/9101/fire", //macro in background con snapshot /s2/"eos/macro/9102/fire", /s4/"eos/macro/9104/fire", /*1 */"/eos/cue/22/1/fire", }; /************************************************************************************************************** const String buttonUps[40] /A/"eos/cue/50/0/fire", /D/"eos/cue/50/0/fire", /G/"", /L/"eos/cue/50/0/fire", /J/"eos/sub/755/out", /s1/"", /s2/"eos/macro/9113/fire", /s4/"", /*1 */"", }; /************************************************************************************************************** int keyBounce = 5; void parseOSCMessage(String& msg) /******************************************************************************* // this is necessary for reconnecting a device because it needs some time for (int i = 0; i < 40; i++) pinMode(buttonPins[i], INPUT_PULLUP); /******************************************************************************* fader1.update(); // Check to see if any OSC commands have come from Eos that we need to respond to. // Send a ping every second. errors message: MLJ_POWER_BUTTONS_CON_FADER_4.0:64:45: error: no matching function for call to 'Fader::Fader(const uint8_t&, int, int)' |
Beta Was this translation helpful? Give feedback.
-
|
hypothesis of solution? .. with dummies pin not connected #include <SLIPEncodedUSBSerial.h> /************************************************************************************************************** #define FADER_1_LEVELER A0 /************************************************************************************************************** #define FADER_PAGE 30 // fader page on EOS / Nomad const String HANDSHAKE_QUERY = "ETCOSC?"; /************************************************************************************************************** /************************************************************************************************************** EOS eos; /************************************************************************************************************** void initEOS() { int buttonPins[40] = }; /************************************************************************************************************** bool buttonState[40] = /************************************************************************************************************** unsigned long buttonTimers[40] /************************************************************************************************************** const String buttonDowns[40] /A/"/eos/cue/50/1/fire", /D/"/eos/cue/50/4/fire", /G/"eos/key/go", /L/"/eos/cue/50/7/fire", /J/"eos/sub/755/full", /s1/"eos/macro/9101/fire", //macro in background con snapshot /s2/"eos/macro/9102/fire", /s4/"eos/macro/9104/fire", /*1 */"/eos/cue/22/1/fire", }; /************************************************************************************************************** const String buttonUps[40] /A/"eos/cue/50/0/fire", /D/"eos/cue/50/0/fire", /G/"", /L/"eos/cue/50/0/fire", /J/"eos/sub/755/out", /s1/"", /s2/"eos/macro/9113/fire", /s4/"", /*1 */"", }; /************************************************************************************************************** int keyBounce = 5; void parseOSCMessage(String& msg) /******************************************************************************* // this is necessary for reconnecting a device because it needs some time for (int i = 0; i < 40; i++) pinMode(buttonPins[i], INPUT_PULLUP); /******************************************************************************* fader1.update(); // Check to see if any OSC commands have come from Eos that we need to respond to. // Send a ping every second. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
104 is the code for 100nF printed on the capacitor, 103 is the code for 10nF |
Beta Was this translation helpful? Give feedback.
-
|
Hi , follow sketch: #include <OSCBoards.h> /************************************************************************************************************** #define FADER_1_LEVELER A0 #define FADER_PAGE 30 // fader page on EOS / Nomad const String HANDSHAKE_QUERY = "ETCOSC?"; /************************************************************************************************************** /************************************************************************************************************** EOS eos; /************************************************************************************************************** int buttonPins[21] = }; /************************************************************************************************************** bool buttonState[21] = /************************************************************************************************************** /signed long buttonTimers[21] /************************************************************************************************************** const String buttonDowns[21] /*Q22/1 */"/eos/cue/22/1/fire", /N/"/eos/cue/50/9/fire", /J/"eos/sub/755/full", /s1/"eos/macro/9101/fire", //macro in background con snapshot /s2/"eos/macro/9102/fire", }; /************************************************************************************************************** const String buttonUps[21] /*Q22/1 */"/eos/cue/22/0/fire", /J/"eos/sub/755/out", /s1/"", }; /************************************************************************************************************** int keyBounce = 5; /void parseOSCMessage(String& msg) /************************************************************************************************************** void initEOS() { void parseOSCMessage(String& msg) { } SLIPSerial.begin(115200); // this is necessary for reconnecting a device because it needs some time for (int i = 0; i < 21; i++) pinMode(buttonPins[i], INPUT_PULLUP); /******************************************************************************* fader1.update(); // Check to see if any OSC commands have come from Eos that we need to respond to. // Send a ping every second. |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I built a couple of 6-fader wings with your sketch, everything is fine except that it sends continuous variations of value to Eos even if the fader is stopped, do you have any advice on this? If I want to use 10 faders, I just need to modify the sketch or do I have to modify the EOS library as well? always thanks for everything you make available. Giovanni. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, thank you for your work.
I wanted to ask if I can use a virtule "SHIFT" key with the encoders (from pc or mac keyboard) and leave me the tree pin for other things. It's possible?
Then if I want to put 4 Ecoders and I have the pins available, can the library manage them? .. I was considering the exclusion of the display ... thank you for the advice
Giovanni.
Beta Was this translation helpful? Give feedback.
All reactions