Quick script for controlling the arm/disarm LED, created from the info here. I took a quick stab at trying to make WGXepc run on Linux but didn’t have any luck, so I just created this instead.
#!/bin/sh lport='dd of=/dev/port seek=1167 bs=1' fport='dd of=/dev/port seek=1179 bs=1' steady="\x00" green="\x13" red="\x0b" flash="\x10" off="\x03" case $1 in r|red) printf $red | $lport 2>/dev/null ;; g|green) printf $green | $lport 2>/dev/null ;; off) printf $off | $lport 2>/dev/null ;; steady) printf $steady | $fport 2>/dev/null ;; flash) printf $flash | $fport 2>/dev/null ;; *) echo 'Usage: wgled (red|green|off|steady|flash)' ;; esac
Unfortunately since it’s just a single bidirectional LED, there’s no way to get the green and red on at the same time.
These addresses and values are for the X-Core-e boxes. For other boxes, look in the WGXepc source (available here) to find values and addresses. The value that you printf is the value you want to write, while the seek value for dd is the address, converted to decimal.
Still not sure how to control the disk or expansion LED.