/* shell */ kein dd status output mehr...
This commit is contained in:
parent
84c601f4a8
commit
ae590fe3a5
|
@ -50,13 +50,12 @@ Per UDP an ledbeere:2342 für 226 LEDs:
|
|||
=== shell ===
|
||||
|
||||
Weißes Rauschen anzeigen, also Farbdaten aus <tt>/dev/urandom</tt>:
|
||||
: <source lang=bash>while true; do ( echo -en '\x00\x00\x02\xA6'; dd if=/dev/urandom bs=678 count=1 ) | ncat --send-only --udp ledbeere 2342; sleep 0.1; done</source>
|
||||
: <source lang=bash>while true; do ( echo -en '\x00\x00\x02\xA6'; dd if=/dev/urandom bs=678 count=1 status=none ) | ncat --send-only --udp ledbeere 2342; sleep 0.1; done</source>
|
||||
|
||||
|
||||
Alle LEDs auf grün stellen:
|
||||
: <source lang=bash>( echo -en '\x00\x00\x02\xA6'; for i in {1..226}; do echo -en '\x00\xFF\x00'; done ) | ncat --send-only --udp ledbeere 2342</source>
|
||||
|
||||
|
||||
=== python ===
|
||||
|
||||
Ein einfaches Beispiel in Python:
|
||||
|
|
Loading…
Reference in New Issue
Block a user