Skip to content

Commit

Permalink
Fix typo in apa102.c and solve issue raspberrypi#446.
Browse files Browse the repository at this point in the history
Red used to not light up. Lights up and follows the wave pattern after the typo fix.
  • Loading branch information
olibel270 authored Dec 11, 2023
1 parent 96f4abe commit 01f86c0
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 01f86c0

Please sign in to comment.