Browse Source

begining of the Loth project

master
tth 12 months ago
parent
commit
9c4595ef4c
3 changed files with 41 additions and 0 deletions
  1. +6
    -0
      Loth/Makefile
  2. +13
    -0
      Loth/README.md
  3. +22
    -0
      Loth/sender.sh

+ 6
- 0
Loth/Makefile View File

@ -0,0 +1,6 @@
# ----------------------------------------------------------
#
#

+ 13
- 0
Loth/README.md View File

@ -0,0 +1,13 @@
# Loth Hacks for fun and profit
## en shell
Voir `sender.sh`
## en C
## Et ensuite ?
Une petite bière ?

+ 22
- 0
Loth/sender.sh View File

@ -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

Loading…
Cancel
Save