Closed markuslang79 closed 7 years ago
I don't think those boards support the progmem directives so the library would need to be enhanced to not use progmem directives
This platform architecture is supported; but they may have changed/fixed things as Arm boards didn't correctly use Arduino compile define standards so there has to be extra checks than just the normal platform arch checks; making it rather a hack to support them.
I do not see ARM defined in the compile lines above; could you confirm in a sketch that it is present with your current build setup. Add this line at the very top of your sketch and compile.
#if !defined(__arm__)
#error "Platform ARM NOT defined!"
#endif
Do you see the compile error in the output that states "Platform ARM NOT defined!"?
Problem found. You should add an Issue with the ARM board project. They removed the PGM_VOID_P type from their PROGMEM support in some update. They do support PROGMEM, but for some reason they missed this standard type/define that AVR and other platforms support.
A work around is add the following to your sketch just before the include for my library...
// add the following for Arm as a work around until they fix their board support
#include <Arduino.h>
#ifndef PGM_VOID_P
#define PGM_VOID_P const void *
#endif
// add the above before the include for NeoPixelBus
#include <NeoPixelBus.h>
Any chance someone has this library running on rfduino? What an awesome library! Thank you. I was able to run this on a 300 led rgbw sk6812 strip. However I'm a little too green to figure out how to compile on an rfduino board. Could anyone provide some info? Need some info from the compile?
@foxcanada It not considered correct to reply to a closed issue unless it is directly related to said issue. Since you mentioned another board than what this issue was created for, please don't do this.
You should look at the readme which states to go to gitter for quick questions (like yours).
I'm unable to compile the NeoPixelTest.ino code from the NeoPixelBus 2.2.6 examples for an Arduino/Genuino MRK1000 Board. It fails with the following compilation errors:
Compiling the Sketch for other boards like an Arduino Uno works fine so that I assume it's an board-specific issue. The same error also happens for the Arduino Zero board.
Does the NeoPixelBus library support the MKR1000/Zero SAMD21 architecture?