Hi all,
I try to do my first steps with FastLED and Arduino. It looks nice and I realy want to make this work.
But keep getting the error:
… arduino-1.6.1/libraries/FastLED/lib8tion.cpp:60:54: error: declaration of C function ‘void* memcpy8(void*, void*, uint16_t)’ conflicts with
void * memcpy8 ( void * dst, void* src, uint16_t num )
where is this second memcpy8 come from?
Found the error … “const” was missing in
lib8tion.h
///////////////////////////////////////////////////////////////////////
//
// memmove8, memcpy8, and memset8:
// alternatives to memmove, memcpy, and memset that are
// faster on AVR than standard avr-libc 1.8
#if defined(AVR)
extern “C” {
void * memcpy8 ( void * dst, const void * src, uint16_t num ) attribute ((noinline));
//void * memcpy8 ( void * dst, void* src, uint16_t num );
//void * memmove8 ( void * dst, void* src, uint16_t num );
void * memmove8( void * dst, const void * src, uint16_t num );
void * memset8 ( void * ptr, uint8_t value, uint16_t num ) attribute ((noinline)) ;
}
#else
// on non-AVR platforms, these names just call standard libc.
#define memmove8 memmove
#define memcpy8 memcpy
#define memset8 memset
#endif
This should be fixed in the most recent code that i’ve pushed up.
Realy cool library thank you Daniel !!