Initial
Dependencies: mbed USBDevice USBJoystick_SIM
Revision 7:6e1b826a62b6, committed 2020-03-25
- Comitter:
- Cirrus01
- Date:
- Wed Mar 25 14:26:48 2020 +0000
- Parent:
- 6:d3042649530d
- Commit message:
- Changed 8 bit encoder values to 32 bit values
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Mar 25 14:20:37 2020 +0000
+++ b/main.cpp Wed Mar 25 14:26:48 2020 +0000
@@ -182,11 +182,11 @@
encoder = readEncoder();
if (encoder == -1)
{
- buttons |= 0x40;
+ buttons |= 0x40000000;
}
else if (encoder == 1)
{
- buttons |= 0x80;
+ buttons |= 0x80000000;
}
// return the new button list