diff options
author | Nico <NicoHood@users.noreply.github.com> | 2017-11-02 19:15:48 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2017-11-02 19:15:48 +0300 |
commit | 64d729e6e6d6bbb8da239e65963d6eb82a7059a7 (patch) | |
tree | b170954bcf1d801a32cc7da059b42f46547265cc /noise.cpp | |
parent | e3125f1df54ae60a49e3500ca569053d1b5d9701 (diff) |
Makefile Compilation Fix (#490)
* renamed boolean to bool
* Rename byte to uint8_t
* Fix compilation error: 'NULL' was not declared in this scope
* Always typedef RoReg and RwReg for the AVR platform
* Include stdlib.h if abs() is not available
This is required as Arduino.h #define's its own abs() makro. Outside of Arduino environments stdlib is required.
Also see: https://github.com/arduino/Arduino/issues/6684
* Replace digitalWrite() with Pin Class by FastLed
* Include string.h for memset function
This include is normally done by Arduino.h but still required for makefile environments
$ grep string.h . -r
./Arduino.h:#include <string.h>
* Include math.h for pow()
math.h is normally included by Arduino.h but required for a makefile build
$ grep math.h . -r
./Arduino.h:#include <math.h>
Diffstat (limited to 'noise.cpp')
-rw-r--r-- | noise.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1,5 +1,6 @@ #define FASTLED_INTERNAL #include "FastLED.h" +#include <string.h> FASTLED_NAMESPACE_BEGIN |