From fc7fbb535a4aa70d3b56fdf62a4c9bc60f74118d Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 8 Jan 2017 10:15:09 -0800 Subject: [PATCH] Updated Spiral Topography (markdown) --- Spiral-Topography.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spiral-Topography.md b/Spiral-Topography.md index b89872f..eb0394d 100644 --- a/Spiral-Topography.md +++ b/Spiral-Topography.md @@ -52,7 +52,7 @@ uint16_t Map(uint16_t ring, uint16_t pixel) const { return index; } ``` -NOTE: The code above `(sizeof(Rings)/sizeof(Rings[0])` is a way of having the compiler calculate the count of elements in the Rings array without us hardcoding anything. Often this is exposed as `_countof()` in many code based but it was not included in the Arduino headers for some reason. +NOTE: The code above `(sizeof(Rings)/sizeof(Rings[0])` is a way of having the compiler calculate the count of elements in the Rings array without us hardcoding anything. Often this is exposed as `_countof()` in many code bases but it was not included in the Arduino headers for some reason. ### Making the object usable for different collections of rings The above code hard codes the array of values. We can make this a configuration argument to the constructor of our mapping class and thus reuse the code for different projects.