Skip to content

Commit

Permalink
Merge pull request #3 from elaurijssens/main
Browse files Browse the repository at this point in the history
Use the brightness data from the data stream instead of the fixed 31
  • Loading branch information
Gadgetoid authored Nov 13, 2024
2 parents afb0f68 + ed80fcb commit 6f5afea
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 6f5afea

Please sign in to comment.