arduino_i2c_example by dvwl

This sketch is for IoT Workshop organized by Microsoft Student Partners Malaysia
This sketch is written for IoT Workshop carried out by Microsoft Student Partners Malaysia This sketch is tested on Atmega 328P only. This sketch prepares an Arduino device as slave device on I2C bus operated by MinnowBoard Max running Windows 10 IoT Core. Objectives: + Periodically collect sensor data (Function: loop) + OnReceive, collect 3-bytes mode instruction and perform operations based upon it. (Function: ReceiveData) + OnRequest, send 11-bytes response array based on selected mode by OnReceive. (Function: SendData) Note: Increase array size to send more bytes This sketch is provided as it is without any WARRANTY. I am not liable for any loss of data or injuries caused by this sketch.

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:367885" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>