Closed karizr45 closed 1 year ago
Write the desired digital pin at the beginning of the sketch https://github.com/TrueOpenVR/TrueOpenVR-DIY/blob/master/Controllers/Arduino/Controller.ino#L10-L22
But will driver read it?
yes
Thanks
Only pins without ctrl sequence?
I mean changing ctrl float
The sketch has an example of how to change
int CtrlButtons = 0;
if (digitalRead(GripBtnPin) == LOW)
CtrlButtons |= GRIP_BTN;
if (digitalRead(ThumbStickBtnPin) == LOW)
CtrlButtons |= THUMB_BTN;
if (digitalRead(MenuBtnPin) == LOW)
CtrlButtons |= MENU_BTN;
if (digitalRead(SystemBtnPin) == LOW)
CtrlButtons |= SYS_BTN;
ctrl[8] = CtrlButtons;
OK thx
How can i add A and B buttons to controller.ino