Skip to content

Standard format for cRGB#76

Open
Sodium-Hydrogen wants to merge 3 commits intocpldcpu:masterfrom
Sodium-Hydrogen:master
Open

Standard format for cRGB#76
Sodium-Hydrogen wants to merge 3 commits intocpldcpu:masterfrom
Sodium-Hydrogen:master

Conversation

@Sodium-Hydrogen
Copy link
Copy Markdown

I prefer to use {0, 0, 0} to set the values of the LEDs versus having a cRGB variable that you have to set with var.r = 0; var.g = 0; var.b = 0; to help keep this standard I changed:

  • all the libraries that use cRGB to enforce RGB data order.

I also changed:

  • some of the examples to demonstrate this simpler way of declaring a struct.
  • added keywords.txt for the Arduino library.

I do not have anything setup for testing the AVR libraries to ensure functionality. So functionality is only known for the following:

  • Working for Arduino
  • Working for WS2812 AVR
  • Working for APA102 AVR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant