lordmundi / shuttleCP

ShuttleCP: Jog Dial for ChiliPeppr and bCNC
GNU General Public License v3.0
6 stars 5 forks source link

How can i deactivate wiringPi? #7

Closed xpix closed 8 years ago

xpix commented 9 years ago

I like your module very much, but if i want to use the GPIO's with another program. How can i deactivate the wiringPi support?

lordmundi commented 9 years ago

Ok, so I made an attempt at adding this capability this morning, but I don't have any way to test it since my raspi is not available right now. So, I put it in a separate branch called "gpio_disable". Checkout to this branch and edit the Makefile to change "GPIO_SUPPORT" to 0. Hopefully that will work for you. If it does, please post back here and I will merge it into the main master branch.

xpix commented 9 years ago

Compile, but i don't know if works:

root@raspb-b2:~/shuttleCP# make
cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0   -c -o shuttlecp.o shuttlecp.c
cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0   -c -o websocket.o websocket.c
cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0   -c -o led_control.o led_control.c
cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0   -c -o raspi_switches.o raspi_switches.c
gcc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0 shuttlecp.o websocket.o led_control.o raspi_switches.o -o shuttlecp -lwiringPi -lnopoll -Wl,-rpath -Wl,/usr/local/lib

root@raspb-b2:~/shuttleCP# ./shuttle
Starting shuttleCP ...
sudo: unable to resolve host raspb-b2
Attempting connection to localhost:8989
Websocket connected.
/dev/input/by-id/usb-Contour_Design_ShuttleXpress-event-if00: No such file or directory
/dev/input/by-id/usb-Contour_Design_ShuttleXpress-event-if00: No such file or directory
lordmundi commented 9 years ago

Ok, sounds like it isn't seeing your shuttle hardware. Once you resolve that, let me know if it works as normal.

FG Sent from my Android phone On Sep 16, 2015 8:48 AM, "Frank Herrmann" notifications@github.com wrote:

Compile, but i don't know if works:

root@raspb-b2:~/shuttleCP# make cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0 -c -o shuttlecp.o shuttlecp.c cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0 -c -o websocket.o websocket.c cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0 -c -o led_control.o led_control.c cc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0 -c -o raspi_switches.o raspi_switches.c gcc -O3 -W -Wall -I /usr/local/include/nopoll -DGPIO_SUPPORT=0 shuttlecp.o websocket.o led_control.o raspi_switches.o -o shuttlecp -lwiringPi -lnopoll -Wl,-rpath -Wl,/usr/local/lib

root@raspb-b2:~/shuttleCP# ./shuttle Starting shuttleCP ... sudo: unable to resolve host raspb-b2 Attempting connection to localhost:8989 Websocket connected. /dev/input/by-id/usb-Contour_Design_ShuttleXpress-event-if00: No such file or directory /dev/input/by-id/usb-Contour_Design_ShuttleXpress-event-if00: No such file or directory

— Reply to this email directly or view it on GitHub https://github.com/lordmundi/shuttleCP/issues/7#issuecomment-140747230.