Code: Select all
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
I wrote some brief notes on what I did to get an I2C RTC running on th Pi, using both kernel drivers and user code accessing registers.fulburncams wrote:Hi
Has anyone an example of actual working 'C' code to write to the I2C port on the Raspi.
Users browsing this forum: No registered users and 17 guests