|
Hi could you please help me for a layout to add a funky switch to the Button box setup 2? thank you |
Answered by
afpineda
Mar 7, 2024
Replies: 3 comments 2 replies
|
Will look into it. Give me some time, please. |
0 replies
|
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. |
2 replies
Answer selected by
afpineda
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Thanks for your patience and support.
Modify the circuit in this way:
COMandPUSHtags, at least, in their data sheet. Check first. If you come into one of them, swap those terminals.The sketch needs some changes, too: