aboutsummaryrefslogtreecommitdiff
path: root/include/drv/ws2812B/ws2812b.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drv/ws2812B/ws2812b.h')
-rw-r--r--include/drv/ws2812B/ws2812b.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drv/ws2812B/ws2812b.h b/include/drv/ws2812B/ws2812b.h
index bc86cc5..5ae41aa 100644
--- a/include/drv/ws2812B/ws2812b.h
+++ b/include/drv/ws2812B/ws2812b.h
@@ -15,7 +15,7 @@ static_assert(sizeof(rgb_t) == 3, "Sizeof rgb_t should be 3.");
uint8_t* ws2812b_compile_rgb(rgb_t* out, size_t arr_len);
-/* Returns sin((n - 128) / 256) * 256. */
+/* Returns round(sin(2πn / 256) * 127.5 + 127.5). */
uint8_t byte_sin(uint8_t n);
#endif /* WS2812B_H_ */