~npisanti/gpiosc

f3fd53a882a729d4584d0d295b7c8a5c019597cb — Nicola Pisanti 3 months ago 45fad7e
renamed to gpiosc
2 files changed, 6 insertions(+), 6 deletions(-)

M README.md
A bin/.gitkeep
M README.md => README.md +6 -6
@@ 1,17 1,17 @@
# osc_gpio 
# gpiosc 

Utility to receive OSC messages to control rasperry pi's GPIO pins. 
Usage:

```sh
osc_gpio [port] [address]
gpiosc [port] [address]

```
address is optional and it will default on reacting to incoming message on `/gpio`. 

Received OSC messages should have two int argument: the first is the GPIO number to address (any number from 1 to 27 is valid) and the second is the value to set (any value greater than 0 will be treated as HIGH, the others as LOW). As soon as a message for a pin is received the first time, that pin mode is set to OUTPUT.

To quit the program you can use SIGINT by pressing CTRL+C or sending a SIGTERM with another console with `killall osc_gpio`. 
To quit the program you can use SIGINT by pressing CTRL+C or sending a SIGTERM with another console with `killall gpiosc`. 

## building 



@@ 20,12 20,12 @@ you need `liblo` installed (included dev packages) in your system, then you buil
```sh
sudo apt-get install build-essential
sudo apt-get install liblo7 liblo-dev
git clone https://git.sr.ht/~npisanti/osc_gpio
cd osc_gpio 
git clone https://git.sr.ht/~npisanti/gpiosc
cd gpiosc 
make

```
then you will have an executable in `bin/osc_gpio`. 
then you will have an executable in `bin/gpiosc`. 

To build in debug mode, you should `make clean` first and then `make debug`, the output executable will have the same name.


A bin/.gitkeep => bin/.gitkeep +0 -0