Anonymous

Project:USB Disco Dance Floor/v1/firmware: Difference between revisions

From London Hackspace Wiki
Fixes and style changes for colour spec examples
(Added docs for "set pixel" command)
(Fixes and style changes for colour spec examples)
Line 14: Line 14:


Examples:
Examples:
* 4 bpc (bits per channel) and 4 colours would lead to a bit pattern of: <tt>RRRRGGGG BBBBUUUU</tt>.
* 4 <abbr title="bits per channel">bpc</abbr> and 4 colours would lead to a bit pattern of: <tt style="font-weight: bold"><span style="color: #c00">RRRR</span><span style="color: #090">GGGG</span> <span style="color: #00c">BBBB</span>UUUU</tt>.
* 4 bpc and 3 colours would have a bit pattern of: <tt>RRRRGGGG BBBB0000</tt>
* 4 bpc and 3 colours would have a bit pattern of: <tt style="font-weight: bold"><span style="color: #c00">RRRR</span><span style="color: #090">GGGG</span> <span style="color: #00c">BBBB</span><span style="color: #666; font-weight: normal">0000</span></tt>
* 12bps and 3 colours would have a bit pattern of: <tt>RRRRRRRR RRRRGGGG GGGGGGGG BBBBBBBB BBBB0000</tt>
* 12 bpc and 3 colours would have a bit pattern of: <tt style="font-weight: bold"><span style="color: #c00">RRRRRRRR RRRR</span><span style="color: #090">GGGG GGGGGGGG</span> <span style="color: #00c">BBBBBBBB BBBB</span><span style="color: #666; font-weight: normal">0000</span></tt>
* 3bps and 3 colours would have a bit pattern of: <tt>RRRGGGBB B0000000</tt>
* 3 bpc and 3 colours would have a bit pattern of: <tt style="font-weight: bold"><span style="color: #c00">RRR</span><span style="color: #090">GGG</span><span style="color: #00c">BB B</span><span style="color: #666; font-weight: normal">0000000</span></tt>


=== Co-ordinate ===
=== Co-ordinate ===