Led Matrix: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 25: | Zeile 25: | ||
clifford/mplayer/mplayer-bin -vo metaleds:/dev/lp0 -framedrop -vf scale -zoom -x 72 -y 48 test.avi | clifford/mplayer/mplayer-bin -vo metaleds:/dev/lp0 -framedrop -vf scale -zoom -x 72 -y 48 test.avi | ||
netcat -l -p 7000 > /dev/lp0 | netcat -l -p 7000 > /dev/lp0 | ||
Format is: 72x48 bytes of pixeldata (ranging from 0x00 to 0x0F) followed by a single 0x80 (to flip framebuffers) | Format is: 72x48 bytes of pixeldata (ranging from 0x00 to 0x0F) followed by a single 0x80 (to flip framebuffers) | ||
== Protocol == | |||
3456 bytes ranging vrom 0 (0x00) to 15 (0x0F) | |||
each byte represets one pixel with a brightness ranging from 0 to 15 | |||
the pixels start at the upper left corner and are numbered as in the selfexplaining example below | |||
after each fram 1 flipbyte (0x80) is sent that sets framebuffer and displays the data sent before. | |||
all output on is doublebuffered on the fpga. | |||
<pre> | |||
________________________ | |||
| 1 2 3 ....... 48| | |||
|49 50 ......... 96| | |||
|. | | |||
|. | | |||
|3408..... 3456| | |||
_________________________ | |||
</pre> | |||
=== Using with Python === | === Using with Python === |