-
Hi could you please help me for a layout to add a funky switch to the Button box setup 2? thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Will look into it. Give me some time, please. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your patience and support.
The sketch needs some changes, too: void simWheelSetup()
{
inputs::addButtonMatrix(
mtxSelectors,
sizeof(mtxSelectors) / sizeof(mtxSelectors[0]),
mtxInputs,
sizeof(mtxInputs) / sizeof(mtxInputs[0]),
mtxNumbers);
inputs::addRotaryEncoder(GPIO_NUM_26, GPIO_NUM_27, 56, 57);
inputs::addRotaryEncoder(GPIO_NUM_12, GPIO_NUM_13, 58, 59);
inputs::addRotaryEncoder(GPIO_NUM_18, GPIO_NUM_19, 60, 61);
inputs::addRotaryEncoder(GPIO_NUM_22, GPIO_NUM_23, 62, 63, true); // Funky switch
inputHub::setDPADControls(10, 11, 12, 13);
}
void setup()
{
userSettings::begin();
simWheelSetup();
hidImplementation::begin(
DEVICE_NAME,
DEVICE_MANUFACTURER,
false);
inputs::start();
} I did some work for you:
You have to do the testing, since I can not build this design by myself right now. Best regards. |
Beta Was this translation helpful? Give feedback.
-
Note: in the meanwhile, the firmware has gone to version 4.0.0. You need more code changes, now. Take a look to Setup2 again. |
Beta Was this translation helpful? Give feedback.
Thanks for your patience and support.
Modify the circuit in this way:
COM
andPUSH
tags, at least, in their data sheet. Check first. If you come into one of them, swap those terminals.The sketch needs some changes, too: