Skip to content

Commit ca2f0ee

Browse files
authored
Fix for issue #446: No red LED lights up in apa102.c example program. (#447)
Simple typo correction which makes the red LED lights turn on as expected, following the wave pattern.
1 parent d03763e commit ca2f0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pio/apa102/apa102.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int main() {
6262
for (int i = 0; i < N_LEDS; ++i) {
6363
put_rgb888(pio, sm,
6464
wave_table[(i + t) % TABLE_SIZE],
65-
wave_table[(2 * i + 3 * 2) % TABLE_SIZE],
65+
wave_table[(2 * i + 3 * t) % TABLE_SIZE],
6666
wave_table[(3 * i + 4 * t) % TABLE_SIZE]
6767
);
6868
}

0 commit comments

Comments
 (0)