Updated NeoTiles object (markdown)

Michael Miller
2016-03-24 10:25:43 -07:00
parent 1509a7cf33
commit ffa0200e1c

@@ -1,13 +1,15 @@
The NeoTiles object is constructed with two layout "methods" that provide the mapping from the 2d coordinate system to index that the NeoPixelBus requires.
The NeoTiles object is constructed with two layout "methods" that provide the mapping from the 2d coordinate system to a index that the NeoPixelBus requires.
```
template <typename T_MATRIX_LAYOUT, typename T_TILE_LAYOUT> class NeoTiles
```
The T_MATRIX_LAYOUT will define how the pixels on an individual matrix panel are laid out.
The T_TILE_LAYOUT will define how the matrix panels are laid out in the bigger tile arrangement.
The T_TILE_LAYOUT will define how the matrix panels are laid out in the bigger tile arrangement.
See [Layout objects](https://github.com/Makuna/NeoPixelBus/wiki/Layout-objects) for all the possible "methods".
This object has the restriction that all the panels within the collections use the same layout and the same orientation. The NeoMosaic object will rotate the panels to shorten the interconnection distance between panels.
Once you have constructed one, you can then use it map a given x,y to the index and use this set a pixel color.
Once you have constructed one, you can then use it map a given x,y to a index and then use this to set a pixel color.
```
NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> strip(PixelCount, PixelPin);
NeoTiles <RowMajorAlternatingLayout, ColumnMajorAlternatingLayout> tiles(