Sming - Open Source framework for high efficiency native ESP8266 development

User avatar
By alonewolfx2
#14099
Markus Gritsch wrote:Please find attached the complete example code to drive WS2812B RGB LEDs aka NeoPixel.

@anakod: Feel free to add it to the examples or make a WS2812 library from it.

Have fun,
Markus

Thank you for example. Please feel free to join our chat. https://gitter.im/alonewolfx2/Sming
User avatar
By anakod
#14151 hreintke, you are absolutely right, it is correct way. One thing what Sming doesn't use underscores in names, better rename it to TCPServer and TCPServerConnection for compatiblity :)
I planned to add something like the httpserver.addpath (tcpserver.addreadcallback ?) so it can be made generic.

addPath needed because we have different handlers for differrent request paths. In tcp server, if no difference, you can pass callback argument as a constuctor parameter, like here:
https://github.com/anakod/Sming/blob/ma ... ient.h#L36
But you can use methods if you want also, of course.

Is gen_appbin.exe a .net binary? Otherwise it won't run on Linux.

No, it's symlink with additional paths. Yes, of course, it isn't standard way, but why not? :)

Please find attached the complete example code to drive WS2812B RGB LEDs aka NeoPixel.
@anakod: Feel free to add it to the examples or make a WS2812 library from it.

Markus Gritsch, It's really great work! I have not WS2812 so it's hard to test for me. May be you'll create library for that with simple small example and send pull-request on GitHub after that?
User avatar
By alon24
#14253 Hi
I want to start working with sming, now that it has all that I need.

How do you create a project that will compile and has all the needed symbols and such (I am not a c++ developer only java and what is needed).

I tried creating a simple makefile project, but it did not have the need symbols and it did not create a.app file.
So I copied the basic-wifi example and it does not compile, because it cannot find espreiff or something

Last time I checked sming, I ended up looking at my project vs a working compiling project and matching everything, and I can attempt this again (time consuming)

But I wanted to know if there is an easy solution for this, one that would NOT take so much time.

Thanks