Frame rate is a debug option again
Mockband / build (push) Successful in 36s Details

This commit is contained in:
Neale Pickett 2024-01-07 21:30:19 -07:00
parent cf4537b3bd
commit 8beb164475
2 changed files with 7 additions and 5 deletions

View File

@ -176,8 +176,10 @@ void loop() {
#error DPAD isn't implemented yet #error DPAD isn't implemented yet
#endif #endif
// Log sample rate to the second Y axis #ifdef DEBUGY0
buttonState.axis[3] = samples & 0xff; // Log sample rate to the first Y axis
buttonState.axis[1] = samples & 0xff;
#endif
// Send an update // Send an update
HID().SendReport(0, (uint8_t *)&buttonState, 27); HID().SendReport(0, (uint8_t *)&buttonState, 27);

View File

@ -10,9 +10,9 @@ hopefully at least my notes will still be around.
Sample Rate Sample Rate
----------- -----------
The number of samples taken since the last HID report If `DEBUGY0' is defined,
is sent as the second Y axis, the number of samples taken since the last HID report
which doesn't appear to be used by anything else. is sent as Y axis on hat 0.
You can use the You can use the
[included gamepad tester](gamepad.html), [included gamepad tester](gamepad.html),
to see the approximate number of samples as an integer. to see the approximate number of samples as an integer.