Skip to content

Command 'PixelType' to change the WS2812 color order and channel number#22876

Merged
s-hadinger merged 1 commit into
arendst:developmentfrom
s-hadinger:pixeltype
Jan 24, 2025
Merged

Command 'PixelType' to change the WS2812 color order and channel number#22876
s-hadinger merged 1 commit into
arendst:developmentfrom
s-hadinger:pixeltype

Conversation

@s-hadinger
Copy link
Copy Markdown
Collaborator

Description:

Command PixelType:

(ESP32 only) Set the number of channels per led in the strip, and the color order
0 = use compile-time options, like on ESP8266 (default)
1 = GRB (typical for WS2812)
2 = RGB
3 = RBG
4 = BRG
5 = BGR
6 = GBR
add 8 = 4 channels strip (RGBW), default 3 channels
add 16 = if W is sent first, default W is sent last

Examples:
1 = GRB
9 = GRBW
25 = WGRB

Checklist:

  • The pull request is done against the latest development branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR and the code change compiles without warnings
  • The code change is tested and works with Tasmota core ESP8266 V.2.7.8
  • The code change is tested and works with Tasmota core ESP32 V.3.1.1.250109
  • I accept the CLA.

NOTE: The code change must pass CI tests. Your PR cannot be merged unless tests pass

@s-hadinger s-hadinger merged commit beb967c into arendst:development Jan 24, 2025
@s-hadinger s-hadinger deleted the pixeltype branch January 29, 2025 20:52
@Noschvie
Copy link
Copy Markdown
Contributor

Noschvie commented Oct 9, 2025

@s-hadinger Do you have the option to test this with an SK6812? The colors don't match mine. For example, with RGBW, green and blue are swapped, and the colors don't match with any other configuration. With WLED the LED strip works. Thanks

@s-hadinger
Copy link
Copy Markdown
Collaborator Author

No I don't have any SK6812. So what is the correct pixel order?

@Noschvie
Copy link
Copy Markdown
Contributor

When compiled with #define USE_WS2812_CTYPE NEO_RGBW, green and blue are swapped. With the other options, the colors are mixed and ambiguous.

@s-hadinger
Copy link
Copy Markdown
Collaborator Author

Do you have the specs of your SK2812 leds? The standard for these leds seem to be GRB, not RGB

@Noschvie
Copy link
Copy Markdown
Contributor

Maybe this spec will help.

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.

2 participants