/I2C-WiringX-Milk-V

Example of using WiringX to use I2C on the Milk-V Duo S SBC

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

I2C-WiringX-Milk-V

This is source code to accompany my blog post: Milk, I2C, and SMBus.

example

How to:

  • Follow the steps in the blog post to make sure you have a working musl RISC-V toolchain
  • Clone this repository: git clone https://github.com/Satharus/I2C-WiringX-Milk-V
  • Setup the environment: source envsetup.sh
  • Build the binary: make
  • Copy sense to the Milk-V Duo S
  • Run it: ./sense
  • Profit??