From ff81b43edec23fc64695da6e55298f1baa31bc1c Mon Sep 17 00:00:00 2001 From: olibel270 <37188828+olibel270@users.noreply.github.com> Date: Sun, 10 Dec 2023 11:51:11 -0800 Subject: [PATCH] Fix for issue #446: No red LED lights up in apa102.c example program. Simple typo correction which makes the red LED lights turn on as expected, following the wave pattern. --- pio/apa102/apa102.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pio/apa102/apa102.c b/pio/apa102/apa102.c index e85abe167..623ec3a99 100644 --- a/pio/apa102/apa102.c +++ b/pio/apa102/apa102.c @@ -62,7 +62,7 @@ int main() { for (int i = 0; i < N_LEDS; ++i) { put_rgb888(pio, sm, wave_table[(i + t) % TABLE_SIZE], - wave_table[(2 * i + 3 * 2) % TABLE_SIZE], + wave_table[(2 * i + 3 * t) % TABLE_SIZE], wave_table[(3 * i + 4 * t) % TABLE_SIZE] ); }