Skip to content

Commit

Permalink
Fix for issue raspberrypi#446: No red LED lights up in apa102.c examp…
Browse files Browse the repository at this point in the history
…le program.

Simple typo correction which makes the red LED lights turn on as expected, following the wave pattern.
  • Loading branch information
olibel270 committed Dec 10, 2023
1 parent 96f4abe commit ff81b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pio/apa102/apa102.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]
);
}
Expand Down

0 comments on commit ff81b43

Please sign in to comment.