Due with Adafruit External Neopixels example

Hi,

Fresh install of Arduino IDE 1.8.19 under Windows 10.
New Due board.

Loaded the sketch Examples > Adafruit Circuit Playground > External Neopixels.

Compile time error as follows:

In file included from G:\Dropbox\CODE\libraries\arduino_771140/Adafruit_CircuitPlayground.h:3:0,
                 from G:\Dropbox\CODE\libraries\arduino_375405\examples\external_neopixels\external_neopixels.ino:1:
G:\Dropbox\CODE\libraries\arduino_771140/Adafruit_Circuit_Playground.h:122:3: error: 'Adafruit_CPlay_FreeTouch' does not name a type
   Adafruit_CPlay_FreeTouch cap[7]; ///< the array of capacitive touch sensors
   ^

If the board selected is an Arduino Micro, the sketch compiles, uploads and works just fine.

Is this incompatibility with the ARM Cortex-M3?

Any hints would be greatly appreciated... Thank you.

The "Adafruit Circuit Playground" library is specifically written for the Adafruit "Circuit Playground Classic" (ATmega32U4 microcontroller) and "Circuit Playground Express" (ATSAMD21 microcontroller) and "Circuit Playground Bluefruit" boards. Much of the library is wrapped in preprocessor conditionals specific to those three targets. So I think this is the cause of the error.

If you want to play with Neopixels, just use either of the excellent general purpose "FastLED" or "Adafruit NeoPixel" libraries. They come with example sketches and you will also fine many many more sketches on the Internet for those libraries. You can install either library from the Arduino Library Manager.

1 Like

in0, ok that's what I suspected, thanks very much for taking the time to clarify & confirm.

Indeed, the other libs are a great resource.

You are welcome. I'm glad if I was able to be of assistance.

Best wishes for success with the Due and NeoPixels!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.