- Mon May 11, 2015 8:59 pm
#17190
andrew melvin wrote:Hi,
Sorry i'd neglected to check back here in a while. Unfortunately i can't really help you. My experience with C, and Arduino is in the timeframe of 2 months. It looks like there are some things missed if you can't compile the demo. My advice would be to clone and build a more recent version of the arduino IDE. If you are using the first 1.6.1 release from git-hub, a huge amount has changed since that was first put up. A huge amount.
Also there is another lib, https://github.com/Makuna/NeoPixelBus.git
This lib, uses a different method of bit banging, namely cpu cycle counts, and it is also able to stop timer 14 interrupts, which makes it less flickery as the wifi stack can't interrupt things. I can't comment on it too much, as i've yet to attach it to any length of string. But I am working with it.
The downsides, are that it is not quite comparable with the arduino lib. Markus has removed the dim feature, and created an rgb object that handles the color. this means the demo functions from arduino don't quite work. i'm struggling round trying to adjust them and learn about it.
If you check the issues, he also showed me how to create the ws2812 object dynamically, which means that you can adjust the number of pixels after you have compiled. That advice will probably work with the adafruit lib too actually. This is great as now you can just deploy a set up and adjust the string length in a web page for example.
let me know how you get on.
Hi, thank you for your reply. I got it to work (see my previous post) using the 8266 Arduino source off Github (downloaded as a zip and compiled). During compilation it asked what version number to use so I gave it 1.6.1:
Code: Select all$ ant dist
Buildfile: /Users/durandal/Documents/Arduino/esp8266/Arduino8266 from source/Arduino-esp8266/build/build.xml
revision-check:
[echo] Latest revision detected in shared/revision.txt is: 1.6.1
[echo] Revision in BaseNoGui.java is: 1.6.1
dist:
[input] Enter version number: [1.6.1]
1.6.1
revision-check:
[echo] Latest revision detected in shared/revision.txt is: 1.6.1
[echo] Revision in BaseNoGui.java is: 1.6.1
macosx-checkos:
subprojects-build:
compile:
After installing an updated JDK the compilation worked. I did have to modify the Esp_WS2812.h file, though, commenting out ESP.h and c_types.h (see my previous post) to avoid some compilation errors. Unfortunately I do not have a record of what these errors were since the output at the bottom of the Arduino window has since been erased.
I also checked out the alternative library you suggested, but did not give it more than a few attempts at fixing compilation errors. I may return to it later if this modified Adafruit library ends up being too constraining. Thank you for the help!