These are chat archives for Makuna/NeoPixelBus

Dec 2018
Dec 18 2018 00:53
Yes of course.
IDE: 1.8.4
Board: LOLIN(Wemos) D1 R2 & mini 2.5.0-beta2
NeoPixelBus: 2.3.5
Num of LEDs: 110 WS2813 (tested with method for WS2812 and WS2813)
Used code:
Michael Miller
Dec 18 2018 08:02
@Benik3 Is there any reason you are using the beta esp8266 board support?
Dec 18 2018 10:40
Arduino IDE gave me that as update in manager. I will try to switch back to 2.4.2 stable
Dec 18 2018 10:48
Yes, with 2.4.2 it's working without any problem, sorry for mistake :)
Jan Horak
Dec 18 2018 15:13

Hi there!
I was just playing with NeoPixelBus, I tried to copy raw byte values of colors directly to the strip object memory, but it doesn't work as expected, it simply does nothing. Am I missing something here?

uint8_t colors[9] = {0xFF, 0x00, 0x00, 0x00, 0xFF, 0x00, 0x00, 0x00, 0xFF};

uint8_t* pixels = strip.Pixels();
memcpy(&pixels, colors, 9);

This is the code snippet I am using. I was expecting after running this 3 different colors (3 pixels) to light up. But it still shows only previsously assigned colour.

Dec 18 2018 16:33
try to first call Dirty(); otherwise it can thinks, that the color is not changed from previous state :)
Michael Miller
Dec 18 2018 18:52
@hokyjack_gitlab As Benik3 stated, you must call Dirty() after modifying the pixels buffer. This is covered in the wiki here
@Benik3 Good information to know that there is problems with the beta versions. I will raise this with the team.