Skip to content
David Lechner edited this page Feb 16, 2014 · 1 revision

I2C Real-Time Clock

Sensors That Use This IC

I2C Address

0x68 (fixed)

Usage

Register device:

echo ds1307 0x68 > /sys/bus/i2c/devices/i2c-<port+2>/new_device

Finding device class node:

for chip in $(find /sys/class/rtc -name rtc*)
do
    if [[ "$(cat $chip/name)" == "ds1307" ]]
    then
        # do whatever
    fi
done
Clone this wiki locally