mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

Support PlatformIO #3

Closed fireboy1919 closed 7 years ago

fireboy1919 commented 7 years ago

Right now, you aren't in any way documenting what kind of device you're compiling with.

Since ESP8266s are fragile and prone to frying when you give them the wrong compile type, this is actually important information.

If you switch from using the Arduino UI to using PlatformIO, that information will all be included in your repository.

Then other people will be able to build your code too and ALSO, create builds for other kinds of chipsets.

mariusmotea commented 7 years ago

Hi,

Is first time when i hear about PlatformIO. I'm open to new ideas and i will give a try.

Thanks, Marius.

fireboy1919 commented 7 years ago

Take a look at the available boards: http://docs.platformio.org/en/latest/platforms/espressif8266.html

You can also specify other options besides board type.

mariusmotea commented 7 years ago

This seems to be straightforward, yesterday i manage to compile and upload the code to an Wemos D1 mini connected to a strip of SK6812 leds and it work. The only change that i need to do is to move lightEngine function above loop(), with Arduino the order seems to not be a problem, with c++ it is. I will update this repo with PlatformIO projects for lights today.

Marius.

fireboy1919 commented 7 years ago

Awesome!

mariusmotea commented 7 years ago

PlatformIO projects where uploaded.