It's 100% possible. I've tinkered with the gpio configuration on the box and was able to read the state of the copy button as well as blink the power light.
To blink the power LED:
1. First get it's i/o state and value so it can be put back. I stored them in variables to put them back later:
DIRECTION=`cat /proc/miscio/gpio_1_config | grep direction`
VALUE=`cat /proc/miscio/gpio_1`
2. Set the direction to "out"
echo "direction=out" > /proc/miscio/gpio_1_config
3. Set to 0/1 to turn on/off respectively
echo "0" > /proc/miscio/gpio_1
echo "1" > /proc/miscio/gpio_1
4. Reset the gpio settings to the values from step 1
echo ${VALUE} > /proc/miscio/gpio_1
echo ${DIRECTION} > /proc/miscio/gpio_1_config
To find the copy button, cycle through the various /proc/miscio/gpio_X (similar to step #1) while you press the button. You'll find it quickly.
I had the copy, ez-setup, and power pins mapped out, but unfortunately I lost my notes... ;-(
- K.C.




Reply With Quote