SmartThingsCommunity / st-device-sdk-c-ref

SmartThings SDK Reference for Direct Connected Devices for C
Apache License 2.0
118 stars 173 forks source link

C++ Compilation #121

Closed timondurot closed 1 year ago

timondurot commented 1 year ago

Hey, how would i go about including a c++ file in one of the /apps/esp8266/ examples? i tried messing with the makefile and the projects.mk file in the bsp folder but im struggling, help please

Kwang-Hui commented 1 year ago

The build environment is depdent with esp8266 rtos sdk. I didn't try it by myself but could you refer this document from ESP?

timondurot commented 1 year ago

Thanks! I needed the C++ support for controlling WS2812 leds, which needs a C++ library like adafruit neopixel, neopixelbus, fastled, etc.

For anybody looking into this in the future (or you could add this to the wiki):

Kwang-Hui commented 1 year ago

Thanks for your update. I think I can update wiki page just like your suggestion.

Kwang-Hui commented 1 year ago

Updated at wiki