Skip to content

Commit

Permalink
Use the brightness data from the data stream instead of the fixed 31
Browse files Browse the repository at this point in the history
  • Loading branch information
elaurijssens committed Oct 13, 2024
1 parent c4491f2 commit ed80fcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plasma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void plasma_flip() {
Multiverse is B G R _
*/
for(auto x = 0u; x < sizeof(led_buffer); x += 4) {
led_buffer[x + 0] = APA102_SOF | led_front_buffer[x + 3];
led_buffer[x + 1] = led_front_buffer[x + 0];
led_buffer[x + 2] = led_front_buffer[x + 1];
led_buffer[x + 3] = led_front_buffer[x + 2];
Expand Down

0 comments on commit ed80fcb

Please sign in to comment.