diff --git a/NeoMosaic-object.md b/NeoMosaic-object.md index 3f53051..ec6dc8e 100644 --- a/NeoMosaic-object.md +++ b/NeoMosaic-object.md @@ -1,12 +1,12 @@ -The NeoMosaic object is constructed with one layout "method" that provides the mapping from the 2d coordinate system to index that the NeoPixelBus requires. +The NeoMosaic object is constructed with one layout "method" that provides the mapping from the 2d coordinate system to a index that the NeoPixelBus requires. ``` template class NeoMosaic ``` -The T_LAYOUT will define how the pixels on an individual matrix panel are laid out. Orientation is ignored. +The T_LAYOUT will define how the pixels on an individual matrix panel are laid out. Orientation is ignored. See [Layout objects](https://github.com/Makuna/NeoPixelBus/wiki/Layout-objects) for all the possible "methods". The NeoMosaic object will use its own layout for the matrix panels, and it 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 strip(PixelCount, PixelPin); NeoMosaic mosaic( @@ -22,7 +22,7 @@ strip.SetPixelColor(mosaic.Map(4, 5), RgbColor(16,16,98)); Using the NeoPixelsMosaicDump.ino sample, the following are some example layouts. -#### NeoMosaic \ mosaic() +#### NeoMosaic \ mosaic(4, 4, 2, 2) ``` 0 1 2 3 4 5 6 7 ------------------------------------------------------------------- @@ -35,4 +35,19 @@ Using the NeoPixelsMosaicDump.ino sample, the following are some example layouts 6 | 62 57 54 49 46 41 38 33 7 | 63> 56 55 48< 47> 40 39 32< +``` + +#### NeoMosaic \ mosaic(4, 4, 2, 2) +``` + 0 1 2 3 4 5 6 7 + ------------------------------------------------------------------- + 0 | 0< 1 2 3 19 23 27 31> + 1 | 4 5 6 7 18 22 26 30 + 2 | 8 9 10 11 17 21 25 29 + 3 | 12 13 14 15> 16< 20 24 28 + 4 | 60 56 52 48< 47> 46 45 44 + 5 | 61 57 53 49 43 42 41 40 + 6 | 62 58 54 50 39 38 37 36 + 7 | 63> 59 55 51 35 34 33 32< + ``` \ No newline at end of file