项目作者: saibatizoku

项目描述 :
Code to blink an LED upon command, with the Arduino configured as an I2C slave
高级语言: Arduino
项目地址: git://github.com/saibatizoku/arduino-i2c-slave-blinker.git
创建时间: 2017-06-08T01:58:32Z
项目社区:https://github.com/saibatizoku/arduino-i2c-slave-blinker

开源协议:

下载


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, 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:

  1. cd ~/Arduino
  2. 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.