I've just received my ARDUINO ZERO PRO and tried to compile my sketch previously used with ARDUINO UNO/MEGA based on Adafruit_NeoPixel library for a neopixel based lighting project.
I'm using IDE 1.7.4 and selected as target Arduino M0 PRO
I've got the following errors:
and many others similar to these.Arduino:1.7.4 (Mac OS X), Scheda:"Arduino M0 Pro (Native USB Port)"
/Adafruit_NeoPixel.cpp: In member function 'void Adafruit_NeoPixel::show()':
/Adafruit_NeoPixel.cpp:749:3: error: 'Pio' was not declared in this scope
Pio *port;
^
/Adafruit_NeoPixel.cpp:749:19: error: 'port' was not declared in this scope
Pio *port;
^
/Adafruit_NeoPixel.cpp:753:29: error: 'pmc_set_writeprotect' was not declared in this scope
pmc_set_writeprotect(false);
^
/Adafruit_NeoPixel.cpp:754:43: error: 'pmc_enable_periph_clk' was not declared in this scope
pmc_enable_periph_clk((uint32_t)TC3_IRQn);
... ^
I'm a relatively new user and I do not know how to fix those missing declaration by myself.
What should I do?
Thanks a lot