An open API service indexing awesome lists of open source software.

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

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.