(→Basic I2C Setup) |
(→BlinkM RGB LED) |
||
Line 1: | Line 1: | ||
== BlinkM RGB LED == | == BlinkM RGB LED == | ||
− | We are supporting BlinkM RGB LED devices via I2C Bus. | + | We are supporting BlinkM RGB LED devices via I2C Bus. You can find more information about BlinkM LEDs here: [http://thingm.com/products/blinkm http://thingm.com/products/blinkm] |
== Basic I2C Setup == | == Basic I2C Setup == |
Contents |
We are supporting BlinkM RGB LED devices via I2C Bus. You can find more information about BlinkM LEDs here: http://thingm.com/products/blinkm
Edit /etc/modprobe.d/raspi-blacklist.conf and add a comment out this line:
Try to load the modules
modprobe i2c-bcm2708 modprobe i2c_dev
Check if the modules are loaded:
lsmod | grep i2c
i2c_dev 5620 22 i2c_bcm2708 3759 0
Keep the modules at start up - add this lines to /etc/modules
i2c-bcm2708 i2c-dev
Check if you can see your device
i2cdetect -y 0
Output should be something like this:
0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- 09 -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
For Raspberry PI B Model with 512MB it's this command - you need EXTRA settings in config.ini too
i2cdetect -y 1
Install BlinkM Device
apt-get update apt-get install agocontrol-blinkm
Add agocontrol to group i2c (if not done by post install script):
adduser agocontrol i2c
Edit /etc/opt/agocontrol/config.ini - optional for non PI B 512MB
[blinkm] #default bus=/dev/i2c-0 # RP B 512MB #bus=/dev/i2c-1
Start the service for BlinkM
systemctl start agoblinkm.service
Enable BlinkM device support at bootup
systemctl enable agoblinkm.service