diff --git a/Loth/Makefile b/Loth/Makefile new file mode 100644 index 0000000..ae076f4 --- /dev/null +++ b/Loth/Makefile @@ -0,0 +1,6 @@ +# ---------------------------------------------------------- +# +# + + + diff --git a/Loth/README.md b/Loth/README.md new file mode 100644 index 0000000..71fc450 --- /dev/null +++ b/Loth/README.md @@ -0,0 +1,13 @@ +# Loth Hacks for fun and profit + +## en shell + +Voir `sender.sh` + +## en C + + +## Et ensuite ? + +Une petite bière ? + diff --git a/Loth/sender.sh b/Loth/sender.sh new file mode 100755 index 0000000..75ed1ad --- /dev/null +++ b/Loth/sender.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +R_IP="localhost" +R_PORT="2222" + +DEVICE=42 + +oscpath=$(printf "/loth/truc/%d" $DEVICE) + +oscsend $R_IP $R_PORT $oscpath s "===========" + +for foo in $(seq 20 7 80) +do + echo " " $foo + message=$(printf "0x%02x" $foo) + oscsend $R_IP $R_PORT $oscpath s "$message" + sleep 1 +done + + + +