KurtE
Senior Member+
Good Morning @mjs513 and @defragster,
Warning, Mike, I pulled in your latest changes to the JoystickBT example app, but I also had changes in my version that got merged in as well...
Hard part was I had used the Arduino Auto format command, semi by accident, so I needed to do a merge and clean up some of the changes...
I hope I got the stuff in correct... If not, you might want to hold onto your previous version, and maybe do a whole replace back to the section you changed. Or I can do it if you would like.
On XBox one front, Plugged in USB I sort of updated the order of axis to match the PS4ish
But as far as I know it just has the 2 joysticks, The 4 buttons (A=40, B=20, X=40, Y=80), plus the Hat, which appears to setup 4 buttons(up=100,right=800, down=200, left=400), and diagonal press will get combination of bits that is up-RIght=900, L1=1000, L2=axis, L3=4000, R1=2000, R2 axis, R3=8000
I put in some quick and dirty display of XBox in the test app, note: Axis are 16 bit values and it does not appear to be a lot of slop!
Example RX data:
20 00 9C 0E 00 00 00 00 00 00 ED 07 30 FE D3 07 74 F9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The location I found most of the information was also again looking at HS2 code, but mostly in places like: https://github.com/quantus/xbox-one-controller-protocol
So far I am only processing the messages 0x20... There is a different message that gets sent when you press the PS button (0x07), but not sure if any useful data in it.
Warning, Mike, I pulled in your latest changes to the JoystickBT example app, but I also had changes in my version that got merged in as well...
Hard part was I had used the Arduino Auto format command, semi by accident, so I needed to do a merge and clean up some of the changes...
I hope I got the stuff in correct... If not, you might want to hold onto your previous version, and maybe do a whole replace back to the section you changed. Or I can do it if you would like.
On XBox one front, Plugged in USB I sort of updated the order of axis to match the PS4ish
But as far as I know it just has the 2 joysticks, The 4 buttons (A=40, B=20, X=40, Y=80), plus the Hat, which appears to setup 4 buttons(up=100,right=800, down=200, left=400), and diagonal press will get combination of bits that is up-RIght=900, L1=1000, L2=axis, L3=4000, R1=2000, R2 axis, R3=8000
I put in some quick and dirty display of XBox in the test app, note: Axis are 16 bit values and it does not appear to be a lot of slop!
Example RX data:
20 00 9C 0E 00 00 00 00 00 00 ED 07 30 FE D3 07 74 F9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
The location I found most of the information was also again looking at HS2 code, but mostly in places like: https://github.com/quantus/xbox-one-controller-protocol
So far I am only processing the messages 0x20... There is a different message that gets sent when you press the PS button (0x07), but not sure if any useful data in it.