You are hereTweaking an Agile Development build light indicator
Tweaking an Agile Development build light indicator
Got to work setting up an agile build development visual indicator lamp.
Plugged it in, linux USB subsystem says..
[432955.032403] usb 1-2: new low speed USB device using ohci_hcd and address 6 [432955.245791] usb 1-2: configuration #1 chosen from 1 choice [432955.249318] usbled 1-2:1.0: USB LED device now attached [432955.249366] usb 1-2: New USB device found, idVendor=0fc5, idProduct=1223 [432955.249369] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [432955.249372] usb 1-2: Product: USB Visual Indicator [432955.249375] usb 1-2: Manufacturer: Delcom Engineering
Looks like a delcom engineering visual indicator lamp.
oddly enough, there are entries under /sys for this lamp, i guess there must be a kernel module for it in 2.6.22 ?
I guess it must be one of these..
dgtlmoon@nine:/tmp$ lsmod|grep -i led usbled 9344 0 led_class 10248 1 acer_wmi
So a simple bash hack...
#!/bin/bash
while `true`
do
echo 0 >/sys/bus/usb/drivers/usbled/1-2:1.0/blue
sleep 0.25
echo 1 >/sys/bus/usb/drivers/usbled/1-2:1.0/green
sleep 0.25
echo 1 >/sys/bus/usb/drivers/usbled/1-2:1.0/red
sleep 0.25
echo 1 >/sys/bus/usb/drivers/usbled/1-2:1.0/blue
sleep 0.25
echo 0 >/sys/bus/usb/drivers/usbled/1-2:1.0/red
sleep 0.25
echo 0 >/sys/bus/usb/drivers/usbled/1-2:1.0/green
sleep 0.25
echo 1 >/sys/bus/usb/drivers/usbled/1-2:1.0/green
echo 1 >/sys/bus/usb/drivers/usbled/1-2:1.0/blue
echo 1 >/sys/bus/usb/drivers/usbled/1-2:1.0/red
sleep 0.5
done
Should give me pretty lights like..

Now to figure it out in windows, get the build lamp to represent the background color of a python buildomatic continuous integration (CI) server
Tags
