diff options
Diffstat (limited to 'recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach.sh')
-rwxr-xr-x | recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach.sh b/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach.sh new file mode 100755 index 000000000..b45d83aae --- /dev/null +++ b/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# ds1307 +echo "ds1307 0x68" > /sys/class/i2c-dev/$1/device/new_device + +#ds3231 +#echo "ds1307 0x57" > /sys/class/i2c-dev/$1/device/new_device + +#pcf85063 +#echo "pcf85063 0x51" > /sys/class/i2c-dev/$1/device/new_device + |