Compare commits

...

2 Commits

Author SHA1 Message Date
tth 608d18bb30 more doc 2020-10-12 14:00:28 +02:00
tth 845450cad2 variations 2020-10-12 13:53:08 +02:00
3 changed files with 27 additions and 6 deletions

18
functions/README.md Normal file
View File

@ -0,0 +1,18 @@
# Fonctions diverses
## alsaseq
## joyutils
Fonction d'affichage des données du device joystick.
Utilisation : ` osc-joy -D `.
## ncursesfuncs
## senders
La seule documentation existante sur le protocole utilisé au dessus d'OSC.
## serial

View File

@ -34,7 +34,7 @@ for ($i = 0; $i <= 360; $i++) {
$client->send(['/joystick/xy', 'i', $x, 'i', $y]);
# sleep 0.42;
}
sleep 2+rand(2);
sleep 1+rand(2);
$client->send(['/joystick/b', 'i', 50, 'i', 1]);
$client->send(['/joystick/b', 'i', 50, 'i', 0]);
}
@ -60,8 +60,8 @@ print Dumper $client if $verbose;
my ($xk, $yk, $phase);
for ($xk=1; $xk<4; $xk++) {
for ($yk=1; $yk<4; $yk++) {
for ($xk=1; $xk<6; $xk++) {
for ($yk=1; $yk<6; $yk++) {
print "$$ -> $xk $yk\n";
for ($phase=0.0; $phase<1.5705; $phase+=0.0911) {
print "phi = ", $phase, "\n" if $verbose;

View File

@ -2,7 +2,7 @@
## joy2laser
Kluge intuité pendant [Sonoptic 2020](http://sonoptic.net).
Kluge intuité pendant [Sonoptic 2020](http://sonoptic.net/).
```
tth@debian:~/Devel/gadgets-OSC/specific$ ./joy2laser -h
@ -17,9 +17,12 @@ HELP ME !
En réception, c'est fait pour fonctionner avec des choses comme
[osc-joy](../osc-joy.c) ou un [générateur](../generators/) de sinusoïde.
Le [protocole](../functions/sender.c) utilisé est simple
(parfois un peu trop) mais fonctionne bien.
En émission ça tente de se conformer au
En émission, ça tente de se conformer au
[protocole](https://git.interhacker.space/teamlaser/LJ/src/branch/master/README.md#lj-commands-reference)
défini par la teamlaser.
défini par la teamlaser. Hélas, le soft de Sam n'étant pas très stable, ce logiciel.
n'a pas été vraiment testé sur le système réel.