mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-07 12:54:26 +02:00
Updated Spiral Topography (markdown)
@@ -8,14 +8,14 @@ The first thing to discuss is then how the rings get wired together. Is the fir
|
|||||||
|
|
||||||
The second thing to discuss is how you want to "address" the pixels. When talking about a Cartesian or matrix layout, you address the by the column (x) and row (y). But with a spiral its more about Ring (distance from center) and then Pixel (count from a standard position). You might even consider thinking of the Pixel as an angle which would then be similar to a polar coordinate system; but for this discussion we will keep it simple to the count along the ring from top center. Of course with this simplified model, the number of pixels per ring changes with the ring distance from center.
|
The second thing to discuss is how you want to "address" the pixels. When talking about a Cartesian or matrix layout, you address the by the column (x) and row (y). But with a spiral its more about Ring (distance from center) and then Pixel (count from a standard position). You might even consider thinking of the Pixel as an angle which would then be similar to a polar coordinate system; but for this discussion we will keep it simple to the count along the ring from top center. Of course with this simplified model, the number of pixels per ring changes with the ring distance from center.
|
||||||
|
|
||||||
With this, each ring and its starting pixel index is listed in the next table. With the total number of pixels being 119.
|
With this, each ring and its starting pixel index is listed in the next table. With the total number of pixels being 119.
|
||||||
Ring
|
Ring - Starting Pixel
|
||||||
0 - 0 (the center of the jewel)
|
0 - 0 (the center of the jewel)
|
||||||
1 - 1 (the outer ring of the jewel)
|
1 - 1 (the outer ring of the jewel)
|
||||||
2 - 7 (the first on the 12 count ring)
|
2 - 7 (the first on the 12 count ring)
|
||||||
3 - 19 (the first on the 16 count ring)
|
3 - 19 (the first on the 16 count ring)
|
||||||
4 - 35 (the first on the 24 count ring)
|
4 - 35 (the first on the 24 count ring)
|
||||||
5 - 59 (the first on the 60 count ring)
|
5 - 59 (the first on the 60 count ring)
|
||||||
|
|
||||||
## The Spiral Topology Object
|
## The Spiral Topology Object
|
||||||
If you examine the topology objects included in the library, they always include a constructor to configure the object and a method that maps the coordinates into the linear strip index that you then pass to the NeoPixelBus. We want to continue to follow this model; but use our addressing concept.
|
If you examine the topology objects included in the library, they always include a constructor to configure the object and a method that maps the coordinates into the linear strip index that you then pass to the NeoPixelBus. We want to continue to follow this model; but use our addressing concept.
|
||||||
|
Reference in New Issue
Block a user