syndilights/PoC/cheap_random
Georges Kesseler 1437b1dea4 imore off by 1 error fixed 2013-07-31 20:44:19 +02:00
..
patternplayer imore off by 1 error fixed 2013-07-31 20:44:19 +02:00
README - Added README describing the mockup 2013-07-30 12:12:15 +02:00
cheap_random.ino - udpated to 8bit colors and included more arguments on show window function 2013-07-30 11:52:59 +02:00

README

The LED Panel is a 16x32 panel. It is to be used vertically.


^ UP

|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *|
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -|

We flipped it 90 degrees ClockWise (CW)
> UP
|- - - - - - - - - - - - - - - -|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|* * * * * * * * * * * * * * * *|
|- - - - - - - - - - - - - - - -|

The Library of course uses the regular orientation. Consider this:

matrix.drawRect(x,y, sizeX, sizeY, matrix.Color888(255,255,255));

x,y are the starting co-ordinates starting from top-left

sizeX, sizeY will be the size of the rectangle we want to draw.

Everything is in pixel (px) logically 1px == 1LED

The ColorXXX() functions are used to define the color "spectrum"

Color333() - 3bit color representation
Color444() - 4bit color representation
Color888() - 8bit color representation

To simulate a grayscale is pretty difficult and needs some hacking:

http://upload.wikimedia.org/wikipedia/commons/9/93/256colour.png

We have 20 windows at our disposal.

I chose the cheapeast and dirties path possible for the PoC and the following map gives you an overview of the addressing of the windows on the mock-up:

> UP
|- - - - - - - - - - - - - - - -|
|X X X X X X X X X X X X X X X X|
|X       X       X       X      |
|X  W    X  W    X  W    X  W   |
|X       X       X       X      |
|X    1  X    6  X   11  X   16 |
|X       X       X       X      |
|X X X X X X X X X X X X X X X X|
|X       X       X       X      |
|X  W    X  W    X  W    X  W   |
|X       X       X       X      |
|X    2  X    7  X   12  X   17 |
|X       X       X       X      |
|X X X X X X X X X X X X X X X X|
|X       X       X       X      |
|X  W    X  W    X  W    X  W   |
|X       X       X       X      |
|X    3  X    8  X   13  X   18 |
|X       X       X       X      |
|X X X X X X X X X X X X X X X X|
|X       X       X       X      |
|X  W    X  W    X  W    X  W   |
|X       X       X       X      |
|X    4  X    9  X   14  X   19 |
|X       X       X       X      |
|X X X X X X X X X X X X X X X X|
|X       X       X       X      |
|X  W    X  W    X  W    X  W   |
|X       X       X       X      |
|X    5  X   10  X   15  X   20 |
|X       X       X       X      |
|X X X X X X X X X X X X X X X X|
|X X X X X X X X X X X X X X X X|
|X X X X X X X X X X X X X X X X|