From 8beb164475a9a5abf4473e3d4a72fde099caa5fa Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 7 Jan 2024 21:30:19 -0700 Subject: [PATCH] Frame rate is a debug option again --- MockBand.ino | 6 ++++-- docs/tech-notes.md | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/MockBand.ino b/MockBand.ino index 596087b..85f3131 100644 --- a/MockBand.ino +++ b/MockBand.ino @@ -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); diff --git a/docs/tech-notes.md b/docs/tech-notes.md index 229a082..c0a5e35 100644 --- a/docs/tech-notes.md +++ b/docs/tech-notes.md @@ -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.