Skip to content

Repository files navigation

i2c-tools Business Card

This project is inspired by I2CDetect Business Card.

In this project, we are using a RISC-V based CH32V203 MCU to scan the I2C bus. With a USB device controller, we can develop PC-side software to enable additional applications, such as i2ctransfer, and more.

TODO

  • Basic one-time scan
  • Continuous scan
  • refactor and build leds lib
  • PC-side software support
  • linux usb to i2c adapter driver
  • linux MFD (Multi-Function Device) driver (GPIO/I2C/SPI/UART)

Build

install dependencies

rustup target add riscv32imac-unknown-none-elf

cargo install --locked wlink
cargo build -r

Flash firmware

With a WCH-Link(E) probe connected to your target and then:

cargo run -r

Run examples

see examples dir

cargo run -r --example i2c-ssd1306

About

A PCB Business Card inspired by i2cdetect (i2c-tools)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages