These are chat archives for Makuna/NeoPixelBus

9th
May 2016
Daniel Bos
@corani
May 09 2016 08:27
I've got a project (esp8266) that works fine with NeoPixelBus v1 on D1 (GPIO5). It's got a PCB and is enclosed and all, so I'd rather not have to hardware-mod it.
When I recently tried to upgrade to v2, I couldn't get it to work with any of the combinations of modes I tried. Any suggestions on what is most compatible (identical) with v1?
Michael Miller
@Makuna
May 09 2016 16:04
@corani What branch of V1? If it was the master branch, see NeoEsp8266BitBang800KbpsMethod; but note, due to the Esp SDK changes last summer, this method is NOT compatible with WiFi features of the Esp so it is not a suggested use.
Michael Miller
@Makuna
May 09 2016 16:13
@corani since you stated it is physically connected to GPIO5, you must have been using the old master branch and the bitbang method.
If you update the pixels rarely (rather than animating them and calling strip.Show() ) then you might get lucky and it works; but any WiFi activity (you can't control someone pinging you) can cause the chip to reset.
Daniel Bos
@corani
May 09 2016 16:30
Yes, master. I'm updating maybe once an hour, and so far haven't had issues with WiFi. I'll give your suggestion a try, thanks!
sticilface
@sticilface
May 09 2016 18:28
@Makuna got a question about the RGBW color space... are there any methods to have it automatically start to use the W space as you loose saturation... Trying to figure out how to best implement it for the user without having too many options... (I'm implementing a use interface on a TFT screen, so the fewer options the better
the result is sent over to an arduino using PJON which works. need to work on the communications abstraction though. at the moment its all uint32_t so I'm using the HtmlColor object. (which works)
thats a pop up dialog box... turns out not that easy to implement!
Michael Miller
@Makuna
May 09 2016 18:42
@sticilface There is no automatic fallback to the W channel. This was by design. The W can be warm, natural, or cold (at least I have seen only three so far). With R,G, and B set at the same value, the white it produces is different than the W channel. So, I left it up to the consumer to apply what they want.
NOTE: RgbwColor initialized with a single value like RgbwColor(128) will set the W channel only.
NOTE: RgbwColor initialized with a HtmlColor will use the upper byte (often referred to as the A or X) as the W channel. But the RgbColor will ignore it.
sticilface
@sticilface
May 09 2016 18:52
This is true. There are 3 versions. If the rgbws. I'll have to have a deep think about what's the best way to cross that over to the white channel