https://github.com/saibatizoku/arduino-i2c-slave-blinker
Code to blink an LED upon command, with the Arduino configured as an I2C slave
https://github.com/saibatizoku/arduino-i2c-slave-blinker
arduino i2c i2c-slave
Last synced: about 1 month ago
JSON representation
Code to blink an LED upon command, with the Arduino configured as an I2C slave
- Host: GitHub
- URL: https://github.com/saibatizoku/arduino-i2c-slave-blinker
- Owner: saibatizoku
- Created: 2017-06-08T01:58:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T05:36:29.000Z (over 8 years ago)
- Last Synced: 2025-05-31T15:31:55.724Z (4 months ago)
- Topics: arduino, i2c, i2c-slave
- Language: Arduino
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Arduino I2C Slave: LED Blinker
==============================Very simple Arduino code that configures it as an I2C slave that blinks the built-in LED when it receives `0x01`, turning it off when it gets `0x00`.
This program was tested with receiving commands from [hello-i2c-pi](https://github.com/saibatizoku/hello-i2c-pi), as the master.
To run this program, you need to have the "Wire" library in your Arduino installation, then you can install by cloning this repository into your corresponding Arduino directory. Usually something like:
```
cd ~/Arduino
git clone https://github.com/saibatizoku/arduino-i2c-slave-blinker.git
```Once you have the code, simply upload it to your favourite board and hook it up to a proper master.