These are chat archives for Makuna/NeoPixelBus

19th
Dec 2018
Michael Miller
@Makuna
Dec 19 2018 18:13
@Benik3 Your Adalight Repo, I would not include the extra subdirectory like you have done. Right now, I can't clone this into my Arduino folder and just open it, due to cloning requires a directory unique from others and then you have a directory in your of your repo that contains the ino. I am curious how you work?
Michael Miller
@Makuna
Dec 19 2018 18:22
@Benik3 I can't repro the problem using my own sketch. Using your sketch I don't see any issues either, but I can't really exercise it as I don't have the other side of the serial to push this and I didn't see any instructions on how to get it.
Benik3
@Benik3
Dec 19 2018 19:37
I see. So I should rename the repository (to get another name of folder) or not place the .ino in another folder. I don't have this problem because I didn't tried to clone the project in this state.
The data come from SW called Prismatik. It grab screen and set color of the ambient LEDs through serial port. It can be downloaded here: https://github.com/psieg/Lightpack/releases
I have grabbing set to 16ms (60FPS), 110 LEDs.
This is exact settings of mine. Just change COM number in main.conf or run configuration wizard under settings/device.
The files must be placed into user folder\Prismatik (e.g. C:\Users\benik\Prismatik)
Michael Miller
@Makuna
Dec 19 2018 22:40
@Benik3 With GitHub its a little weird with sketches, just move everything under the one folder into the root and you should be good.
Michael Miller
@Makuna
Dec 19 2018 22:47
@Benik3 Something minor, more for your information; you don't have to define the g22 gamma table, there is one in the library
      NeoGamma<NeoGammaTableMethod> gamma; 
      // or if you need to use less memory and a few extra cpu cycles is ok, you can define it as 
      // NeoGamma<NeoGammaEquationMethod> gamma; 

      RgbColor color;
      while (!Serial.available());
      color.R = Serial.read();
      while (!Serial.available());
      color.G = Serial.read();
      while (!Serial.available());
      color.B = Serial.read();

      strip.SetPixelColor(i, gamma.Correct(color));
Benik3
@Benik3
Dec 19 2018 23:01
great, thank you :)
I made this table with colorimeter on my LEDs so I'm 100% sure that they fit :)
Michael Miller
@Makuna
Dec 19 2018 23:03
@Benik3 How do you know it crashes on the esp8266? Just stops working? We need to get the crash dump to figure out what is happening.
Michael Miller
@Makuna
Dec 19 2018 23:21
And this dump is sent out the serial port, so the app would need to capture it and log it
Benik3
@Benik3
Dec 19 2018 23:28
Hmm I think that it's not possible to get serial data from the app, but I could connect e.g. Arduino on the Tx pin and record it with second terminal
I will test now how exactly it "crash"
Benik3
@Benik3
Dec 19 2018 23:34
pretty interesting. It works for the while, then it freeze and after some time it try to reboot, but when I still send data it even freeze on setup loop (red led in my setup).
I will try to catch the debug output
Michael Miller
@Makuna
Dec 19 2018 23:46
Yeah, at a low level they open the port as write only, so there is no easy way for them to capture and log it. Shame, seems like an obvious debug feature to me.
Benik3
@Benik3
Dec 19 2018 23:54
 ets Jan  8 2013,rst cause:4, boot mode:(3,6)      
wdt reset
load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v0fd86a07
~ld
ţ
!03
it's also interesting that if it reboot itself, it send on 115200bD, but when I reboot it with button (reset) it sends on 74880Bd
Michael Miller
@Makuna
Dec 19 2018 23:59
The core uses the strange 74880 baud, so the hardware button cause the core to reset the baud.
Are you stating this output was sent at 115200? Even though you set the baud rate in the sketch at 921600. That I didn't expect.