Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By andrew melvin
#29327 Hi,

I've finally got round to getting my sketch up on github

https://github.com/sticilface/ESP8266-wifi

some photos here too
https://github.com/sticilface/ESP8266-wifi/wiki

This is an all purpose WS2812 sketch that can do a variety of things. See the github page for specifics. It is very much work in progress, the code is a mess, probably full of lots of unconventional stuff, as i only started with C at the beginning of this year with (and I'm not a programmer)... so be kind.

I have this sketch powering 120 LEDs behind my TV using ADALIGHT, and in a lamp with the LEDs wrapped around a bar, and in my bathroom in a strip. It has a whole load of really flexible animation sequences that can make, blobs, squares, lava lamp style effects... etc... but also be set to input using DMX via E131, ADALIGHT via serial at 2,000,000 baud (the adalight is far faster than with an arduino.., there is no lag at that speed), and UDP packets.

You can program and save effects to the EEPROM, so if you get something you like you don't have to mess around. It is all controllable (mostly) via MQTT so works with home automation nicely.

give it a go...

The binaries on github are 512K which will work when flashed but the OTA will not work... so do not try it.

here is a picture of the adalight and lamp in action

Image
User avatar
By andrew melvin
#44819 I've just released the first version of a much improved version of w2812-wifi.. It builds on all the problems I had with the first version .

1) It required sending the whole web page every time.
2) Each effect had to have ALL the parameters or variables that every other effect had.
3) Was not very modular.

This is a complete rewrite that has actually taken months. But it is a lot more stable, much fast, more flexible and addresses all the issues above, and adds more functionality like matrix support.

Take a look
https://github.com/sticilface/Melvanimate

cheers
User avatar
By sxreid
#46670 Looks very interesting but unfortunately I can't get it to work at all.

Initially I tried the Melvinate Example and got the error when trying to compile
Code: Select allPropertyManager.h:298:14: error: 'class IPAddress' has no member named 'fromString'


Similarly when trying to use your ESPManager Example I got a similar error
Code: Select allESPmanager.cpp:373:26: error: 'class IPAddress' has no member named 'fromString'


Any ideas?