-
@tablatronix (copied from a closed issue for them) You can copy the image over again if you wish. Has anyone tested this or have it working ? The bit order on my scope looks wrong like each byte is LSB->MSB and not for all 16bits in order ? Will try to get find my logic analyzer for better capture NeoPixelBus<NeoRgb48Feature, NeoEsp32Rmt1Ws2816Method> strip(1, TX); Rgb48Color test(3, 3, 3); |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
The WS2816 uses GRB color order. You defined it with RGB order. Try this...
or the specifically named color feature
|
Beta Was this translation helpful? Give feedback.
-
There is not a |
Beta Was this translation helpful? Give feedback.
-
What do you mean there is not a \src\internal\features\NeoGrb48Feature.h (line 29) for NeoGrb48Feature The feature will describe to NeoPixelBus how to translate the color, the What do you mean by "per color bytes not pixel"? Please be specific and fully describe what you mean by this statement. |
Beta Was this translation helpful? Give feedback.
-
Ah! there is, My bad I was testing earlier with 64bit before and there was no grb. And got them mixed up. Shouldnt C=0x1 be |
Beta Was this translation helpful? Give feedback.
-
What do you mean by c=0x1? Please be specific. Include a Snippit of code of how you define and set the color. |
Beta Was this translation helpful? Give feedback.
-
// NeoGrb48Feature
Rgb48Color test(1, 1, 1);
strip.SetPixelColor(0, test);
strip.Show(); |
Beta Was this translation helpful? Give feedback.
-
Could you try with 10 pixels to see if any difference. There was an old issue with a single pixel strips but I thought it was fixed.
Confirming details before I try to repo this. |
Beta Was this translation helpful? Give feedback.
-
Esp32 WROOM I can try any variant, I have them all in dev I tried i2s and rmt, I think those are the same, I will check again to be sure. PACKAGES:
- framework-arduinoespressif32 @ 3.20007.0 (2.0.7)
- tool-esptoolpy @ 1.40500.0 (4.5.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
xtensa-esp32-elf-g++ -o "/Users/shawn/projects/microcontrollers/dev/libraries/SHAWN_boards/npb_48bit/npb_48bit.ino.cpp" -x c++ -fpreprocessed -dD -E "/var/folders/rd/zdyjybdj00jf_jccm4ms9qhr0000gn/T/tmpndkh_788"
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Framework incompatible library /Users/shawn/.platformio/lib/RCSwitch
Found 76 compatible libraries
More details about "Library Compatibility Mode": https://docs.platformio.org/page/librarymanager/ldf.html#ldf-compat-mode
Scanning dependencies...
Dependency Graph
|-- NeoPixelBus @ 2.7.5 (License: Unknown, Path: /Users/shawn/.platformio/lib/NeoPixelBus)
| |-- SPI @ 2.0.0 (License: Unknown, Path: /Users/shawn/.platformio/packages/framework-arduinoespressif32/libraries/SPI)
Building in release mode |
Beta Was this translation helpful? Give feedback.
-
Looks like colors are ok, but methods use uint8_t* pixels so 16bit colors are split and then sent out with its 2 bytes reversed |
Beta Was this translation helpful? Give feedback.
-
It looks like a endianness order problem where bytes in uint16_t are stored swapped in ESP32 (and some other platforms). Looking at a fix now. |
Beta Was this translation helpful? Give feedback.
created issue to track it: #700
#699 fixes it.