Cleanup I2Cscan library #65

Closed
opened 2026-04-05 17:51:47 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jlitewski on 6/5/2025

This is a simple cleanup of the I2Cscan library.

It wasn't the best formatted, and seemed like a good candidate for me to start tinkering with the firmware and learn how it works. I modernized the code, and it's functionally identical to the older code. It also throws a lot less linter warnings, and it's a bit more exact with possible issues.

I also added a way to send debug commands over the serial connection, if the tracker is configured to accept those commands. They default to disabled, but setting EXT_SERIAL_COMMANDS to true in debug.h will enable them. I used this to manually trigger I2C scans for testing, and thought it was useful enough to submit it upstream.

*Originally created by @jlitewski on 6/5/2025* This is a simple cleanup of the I2Cscan library. It wasn't the best formatted, and seemed like a good candidate for me to start tinkering with the firmware and learn how it works. I modernized the code, and it's functionally identical to the older code. It also throws a lot less linter warnings, and it's a bit more exact with possible issues. I also added a way to send debug commands over the serial connection, if the tracker is configured to accept those commands. They default to disabled, but setting ```EXT_SERIAL_COMMANDS``` to true in ```debug.h``` will enable them. I used this to manually trigger I2C scans for testing, and thought it was useful enough to submit it upstream.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/SlimeVR-Tracker-ESP#65