-
Notifications
You must be signed in to change notification settings - Fork 289
wrong WS2812FXStripSettings.stripSize #415
Comments
@Talumux How did you set the number of LEDs? Using REST API? |
@toblum I edited the definitions.h and set #define NUMLEDS 1296 |
@Talumux Could you please try and set the number of LEDs using the call is posted above? |
Hi, I set the number of LED using the pixelconf?ct=1296 command. `FS File: /neoconfig.json, size: 44B Reading neoconfig file... Opened! E1.31 mode setup complete. (Now I used the original code without any modifications mentioned in the first post.) |
Hi @Talumux, it seems like the config file couldn't be stored. What is returned when you call: Regards |
when I execute |
This looks OK. And what do you get when you call: http://<YOUR_MCL_IP>/neoconfig.json |
Hi Tobias, |
Maybe you can have a look at the following output. FS File: /style.css, size: 489B Reading neoconfig file... Opened! E1.31 mode setup complete. |
Hi @Talumux, I think I found the cause of the issue. The setting was truncted to three numbers, so that 1296 resulted in 129 after restart. The issue should be fixed in the next release 2.2.5. Many greeting |
@Talumux I just published the new release: https://github.com/toblum/McLighting/releases/tag/v2.2.5 |
I am trying to use mclightning with a matrix of 48 by 27 LEDs (=1296 LEDs). But I got a wrong pixel count information when I run the code. The UART Output shows first the correct number (1296) but later on the last digit is cut off (129):
...
Reading neoconfig file... Opened!
Config: Parsed!
{"pixel_count":1296,"rgb_order":82,"pin":14}Reading config file... Opened!
Config: Parsed!
...
then later:
...
E1.31 mode setup complete.
Read cfg: {"mode":1,"strip_mode":0,"brightness":15,"speed":255,"red":255,"green":168,"blue":13} Success!
*WM: freeing allocated params!
Saving Strip cfg: {"pixel_count":129,"rgb_order":82,"pin":14}
...
I looked through the code an insert NUMLEDS as strip size in line 260 of McLighning.ino
void initStrip(uint16_t stripSize = NUMLEDS, neoPixelType RGBOrder = WS2812FXStripSettings.RGBOrder, uint8_t pin = WS2812FXStripSettings.pin){
instead of
void initStrip(uint16_t stripSize = WS2812FXStripSettings.stripSiz, neoPixelType RGBOrder = WS2812FXStripSettings.RGBOrder, uint8_t pin = WS2812FXStripSettings.pin){
as a quick fix.
It seems to work, but I think this is not the root cause of my problem.
Does anyone know how why the pixel count information is wrong in my case?
The text was updated successfully, but these errors were encountered: