aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-core/udev/demo-i2c-udev-conf/rtc-i2c-attach.sh
blob: b45d83aae0439a024fe0dd8dba70eb39d363fbff (plain)
1
2
3
4
5
6
7
8
9
10
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