Zum Inhalt springen

Led Matrix: Unterschied zwischen den Versionen

Wizard23 (Diskussion | Beiträge)
Antifuchs (Diskussion | Beiträge)
Protocol: Small grammar fixes, inverted pyramid style
Zeile 32: Zeile 32:


== Protocol ==
== Protocol ==
72x48 = 3456 bytes of pixeldata ranging from 0 (0x00) to 15 (0x0F)
72x48 = 3456 octets of pixel data followed by a terminating 0x80 octet.  
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.
All output on is doublebuffered on the fpga so you have to send a 0x80 after the pixeldata to flip
the framebuffers.


Each pixel data octet represents one pixel's brightness, ranging from 0 (0x00, off) to 15 (0x0F, brightest).
The pixels start at the upper left corner and are numbered in [http://en.wikipedia.org/wiki/Row-major_order row-major order] (see the diagram below).
All output is double-buffered on the fpga, so you have to send a 0x80 after the pixel data to flip the frame buffers.
<pre>
<pre>
  ________________________
  ________________________