For Arduino Yùn, adds new REST commands, enabling tunnelling for I2C messages:
- /arduino/I2C/<device>/B|W/<address>/<count>/ -> I2C read data (dataHEX)
- /arduino/I2C/<device>/B|W/<address>/<count>/<dataHEX> -> I2C write data
This library allows to execute some tasks on linux side (using python, php, javascript ...) and not inside the arduino sketch. This can be a great help, because the Arduino Yùn sketch space is limited to 28.672 byte. In examples you can see how to set the linux clock from RTC, or how to adjust the RTC clock from a WEB page, or how put and get a string in EEPROM.
Note: Tested using Arduino YUN and DS1307, AT24C32 - The code is optimized for smallest footprint.
This library uses the I2C library (https://github.com/rambo/I2C)
The analog I2Ctunnelw uses the Wire library (https://www.arduino.cc/en/reference/wire)
See also Arduino-library-getDS1307ts.
Comments
Please log in or sign up to comment.