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
#endif
// Log sample rate to the second Y axis
buttonState.axis[3] = samples & 0xff;
#ifdef DEBUGY0
// Log sample rate to the first Y axis
buttonState.axis[1] = samples & 0xff;
#endif
// Send an update
HID().SendReport(0, (uint8_t *)&buttonState, 27);

View File

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