https://github.com/saibatizoku/hello-i2c-pi
Simple example for sending a command to an I2C slave programmed to start or stop a blinking LED.
https://github.com/saibatizoku/hello-i2c-pi
i2c raspberry-pi rust-lang
Last synced: 4 months ago
JSON representation
Simple example for sending a command to an I2C slave programmed to start or stop a blinking LED.
- Host: GitHub
- URL: https://github.com/saibatizoku/hello-i2c-pi
- Owner: saibatizoku
- Created: 2017-06-08T03:46:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T16:11:59.000Z (over 8 years ago)
- Last Synced: 2025-04-08T18:54:26.540Z (6 months ago)
- Topics: i2c, raspberry-pi, rust-lang
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Start/Stop a blinking LED on an I2C slave
=========================================Simple example written in [Rust](https://www.rust-lang.org), cross-compiled to run on a Raspberry Pi with ARMv6 architecture, and successfully connected to an Arduino programmed with [arduino-i2c-slave-blinker](https://github.com/saibatizoku/arduino-i2c-slave-blinker).
To run, clone this repository and build/run with cargo.
To turn on the blinking:
```
cargo run on
```To turn off the blinking:
```
cargo run off
```This example was tested on a Raspberry Pi with I2C enabled.