You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

  1. # i2c_scanner
  2. Aiming to provide a more qmk friendly version of <https://playground.arduino.cc/Main/I2cScanner/>
  3. > This very simple ~~sketch~~ keymap scans the I2C-bus for devices. If a device is found, it is reported to the ~~Arduino serial monitor~~ console.
  4. ## Flashing
  5. Pick a target that is aligned to the MCU you want to test:
  6. ```console
  7. make handwired/onekey/elite_c:i2c_scanner:flash # also 32u4 + dfu bootloader
  8. make handwired/onekey/promicro:i2c_scanner:flash
  9. make handwired/onekey/teensy_2:i2c_scanner:flash
  10. # ChibiOS is currently 'best effort' and might not report accurate results
  11. make handwired/onekey/proton_c:i2c_scanner:flash
  12. ```
  13. others might work with additional configuration.
  14. ## Usage
  15. Output is viewable through a compatible tool <https://docs.qmk.fm/#/newbs_testing_debugging?id=debugging-tools>.
  16. You can change the wires, and plug-in I2C devices while the i2c_scanner is running.
  17. The output of the console will look like this:
  18. ```
  19. Listening:
  20. Scanning...
  21. I2C device found at address 0x20
  22. done
  23. ```