begining of the Loth project
This commit is contained in:
parent
36f712dc98
commit
9c4595ef4c
6
Loth/Makefile
Normal file
6
Loth/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# ----------------------------------------------------------
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
|
13
Loth/README.md
Normal file
13
Loth/README.md
Normal 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
Loth/sender.sh
Executable file
22
Loth/sender.sh
Executable 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…
Reference in New Issue
Block a user