These are chat archives for Makuna/NeoPixelBus

18th
Dec 2018
Benik3
@Benik3
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: https://github.com/Benik3/Adalight_ESP
Michael Miller
@Makuna
Dec 18 2018 08:02
@Benik3 Is there any reason you are using the beta esp8266 board support?
Benik3
@Benik3
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
Benik3
@Benik3
Dec 18 2018 10:48
Yes, with 2.4.2 it's working without any problem, sorry for mistake :)
Jan Horak
@hokyjack_gitlab
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);
strip.Show();

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.

Benik3
@Benik3
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
@Makuna
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.