DeqingSun / ch55xduino

An Arduino-like programming API for the CH55X
GNU Lesser General Public License v2.1
441 stars 86 forks source link

WS2812 with v0.0.18 #142

Closed akita11 closed 1 year ago

akita11 commented 1 year ago

Example os WS2812's chase fails to build on v0.0.18 with the following error messages.

sdcpp.exe: fatal error: when writing output to : Invalid argument
C:/Users/akita/AppData/Local/Arduino15/packages/CH55xDuino/hardware/mcs51/0.0.18/libraries/WS2812/src/template/WS2812_pins_header.h:7: syntax error: token -> 'dataAndLen' ; column 48
cp:: No such file or director

For 0.0.17, it is ok.

DeqingSun commented 1 year ago

Sorry, the problem is caused by "clang format" changed the order of include, while I did not automatically test the libraries, nor I add protection to the include statements.

The commit fix the problem https://github.com/DeqingSun/ch55xduino/commit/1696eea517ffd2a3209256331345032e8103c6ec