mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-06-05 02:11:00 +00:00
beaglebone-capes: add support for weatherstation cape
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
committed by
Denys Dmytriyenko
parent
c5e5c304b8
commit
0309200539
@@ -3,7 +3,7 @@ DESCRIPTION = "Userspace setup for beaglebone capes"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
inherit allarch
|
||||
|
||||
|
||||
@@ -10,6 +10,12 @@ for eeprom in /sys/bus/i2c/devices/3-005*/eeprom ; do
|
||||
echo "Turning on backlight for LCD4 cape"
|
||||
i2cset -f -y 1 0x24 0x07 0x09
|
||||
i2cset -f -y 1 0x24 0x08 0x60;;
|
||||
"BB-BONE-WTHR-01.")
|
||||
echo "Initializing I2C devices"
|
||||
echo sht21 0x40 > /sys/class/i2c-adapter/i2c-3/new_device
|
||||
echo bmp085 0x77 > /sys/class/i2c-adapter/i2c-3/new_device
|
||||
echo tsl2550 0x39 > /sys/class/i2c-adapter/i2c-3/new_device
|
||||
echo 1 > /sys/bus/i2c/devices/3-0039/operating_mode;;
|
||||
*)
|
||||
echo "unknown cape: $PARTNUMBER";;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user