From 9c4595ef4c608ce5996cb45dd431423bf1c44057 Mon Sep 17 00:00:00 2001 From: tth Date: Fri, 30 Oct 2020 22:37:05 +0100 Subject: [PATCH] begining of the Loth project --- Loth/Makefile | 6 ++++++ Loth/README.md | 13 +++++++++++++ Loth/sender.sh | 22 ++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 Loth/Makefile create mode 100644 Loth/README.md create mode 100755 Loth/sender.sh 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 + + + +