Hi Eric,
You can also use "echo" and "dd", see:
http://www.pcengines.ch/wrap1c.pdf
or the wrap1c.o kernel module, instructions for this modules below.
Eric
Instructions for running the driver on a PcEngines WRAP1C:
----------------------------------------------------------
Accessing the LED's:
echo 1 > /proc/driver/wrap1c_led1 --> turns led 1 on
echo 1 > /proc/driver/wrap1c_led2 --> turns led 2 on
echo 1 > /proc/driver/wrap1c_led3 --> turns led 3 on
echo 101 > /proc/driver/wrap1c_leds --> led 1=on, led2=off, led3=on
echo 110 > /proc/driver/wrap1c_leds --> led 1=on, led2=on, led3=off
echo 001 > /proc/driver/wrap1c_leds --> led 1=on, led2=off, led3=off
cat /proc/driver/wrap1c_led1
--> prints the current status of led 1
cat /proc/driver/wrap1c_led2
--> prints the current status of led 2
cat /proc/driver/wrap1c_led3
--> prints the current status of led 3
Reading the button:
cat /proc/driver/wrap1c_button
--> prints the current status of the button, '1' for pressed
> Does it exist? If so where? running under 3.0 and I can't find it. I
> am trying to write a bash script to control my leds on my WRAP.
>
> -Eric
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys - and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
> leaf-user mailing list: [email protected]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/