dgoersch / wordclock

DIY Wordclock with WS2812B stripes controlled by a ESP8266 NodeMCU
GNU Lesser General Public License v3.0
11 stars 3 forks source link

Issue with wordclock_words.c #2

Open kashish796 opened 6 years ago

kashish796 commented 6 years ago

Hi,

I am having an issue with wordclock_words.c in the sense that it fails to compile with the warning: /tmp/arduino_build_336036/sketch/wordclock_words.c:44:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token const int min_ONE[] {MIN1};

Any comments or suggestions?

timfirestone commented 5 years ago

As the compiler suggests, there is a "=" missing before "{". Here is my solution: const int min_ONE[]={MIN1};

In addition to this you need to change the file extension of "wordclock_words" in the main code to ".c". #include "wordclock_words.c"