From 1fd8336ce35c99bab20f55b56ccad0d85cf3979d Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 8 Jan 2017 10:00:45 -0800 Subject: [PATCH] Updated Spiral Topography (markdown) --- Spiral-Topography.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Spiral-Topography.md b/Spiral-Topography.md index 01716a8..541e5b4 100644 --- a/Spiral-Topography.md +++ b/Spiral-Topography.md @@ -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. -With this, each ring and its starting pixel index is listed in the next table. With the total number of pixels being 119. -Ring -0 - 0 (the center of the jewel) -1 - 1 (the outer ring of the jewel) -2 - 7 (the first on the 12 count ring) -3 - 19 (the first on the 16 count ring) -4 - 35 (the first on the 24 count ring) -5 - 59 (the first on the 60 count ring) +With this, each ring and its starting pixel index is listed in the next table. With the total number of pixels being 119. +Ring - Starting Pixel +0 - 0 (the center of the jewel) +1 - 1 (the outer ring of the jewel) +2 - 7 (the first on the 12 count ring) +3 - 19 (the first on the 16 count ring) +4 - 35 (the first on the 24 count ring) +5 - 59 (the first on the 60 count ring) ## 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.