XPS Lights: Source code in Subversion

I have exported the XPS light control source code into my subversion repository. The software is currently set up to build with Cygwin. As an added bonus, I now have added a target that creates a dll so the code can be reused more easily.

How to use:

xps_lights>make all
rm -f *.o *.dll *.exe
gcc -mno-cygwin -Wall   -c -o xps_led_control_lib.o xps_led_control_lib.c
gcc -shared -o xps_led_control_lib.dll xps_led_control_lib.o
gcc -o testexe xps_led_control.c -L./ -lxps_led_control_lib
testexe -all 4 [all the leds turn turquise]
gcc -mno-cygwin -Wall   -c -o xps_led_control.o xps_led_control.c
gcc -o xps_led_control xps_led_control_lib.o xps_led_control.o
ruby xps_led_control.rb
Cycle array [the side and top leds cycle through a list of colors]
xps_lights>ls
Makefile     xps_led_control.c    xps_led_control.o   xps_led_control_lib.c    xps_led_control_lib.h
testexe.exe  xps_led_control.exe  xps_led_control.rb  xps_led_control_lib.dll  xps_led_control_lib.o

Enjoy.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.

Print This Post Print This Post
  • h3

    thanks pal ! you made my day.

  • h3

    thanks pal ! you made my day.

  • Someone Special

    Wish this worked on Linux…

Creative Commons Attribution 3.0 Unported
This work is licensed under a Creative Commons Attribution 3.0 Unported.