I am doing a light painting led strip application. Uses a SD card to store image, and print it strip by strip over an array of LEDs.
my project uses a Bluno Nano(same mcu as Uno, but with integrated BLE), and considering to move over to MKR ZERO, due to lack of memory on a Uno MCU(currently hitting 68%).
Tried to verify my code after changing the board to MKR ZERO, and got the following error.
would be grateful if anyone can assist me with this.
arduino-builder/arduino-builder -compile -core-api-version 10611 -build-path /tmp/022582714 -hardware arduino-builder/hardware -hardware arduino-builder/packages/cores -tools arduino-builder/tools -tools arduino-builder/packages/tools -built-in-libraries arduino-builder/latest -libraries /tmp/825833479/pinned -libraries /tmp/825833479/custom -fqbn arduino:samd:mkrzero -build-cache /tmp -verbose=false /tmp/825833479/NeoPixel_Painter
In file included from /tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:21:0:
/tmp/022582714/sketch/./gamma.h:19:9: error: 'const uint8_t gamma []' redeclared as different kind of symbol
gamma[] = { // Brightness ramp for LEDs
^
In file included from /home/admin/builder/arduino-builder/packages/cores/arduino/samd/cores/arduino/Arduino.h:27:0,
from /tmp/022582714/sketch/NeoPixel_Painter.ino.cpp:1:
/home/admin/builder/arduino-builder/packages/tools/arm-none-eabi-gcc/4.8.3-2014q1/arm-none-eabi/include/math.h:296:15: error: previous declaration of 'double gamma(double)'
extern double gamma _PARAMS((double));
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino: In function 'void setup()':
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:90:11: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment
port = portOutputRegister(digitalPinToPort(LED_PIN));
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:207:3: error: 'TCCR1A' was not declared in this scope
TCCR1A = _BV(WGM11) | _BV(WGM10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:207:16: error: 'WGM11' was not declared in this scope
TCCR1A = _BV(WGM11) | _BV(WGM10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:207:21: error: '_BV' was not declared in this scope
TCCR1A = _BV(WGM11) | _BV(WGM10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:207:29: error: 'WGM10' was not declared in this scope
TCCR1A = _BV(WGM11) | _BV(WGM10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:208:3: error: 'TCCR1B' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS11) | _BV(CS10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:208:16: error: 'WGM13' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS11) | _BV(CS10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:208:29: error: 'WGM12' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS11) | _BV(CS10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:208:42: error: 'CS11' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS11) | _BV(CS10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:208:54: error: 'CS10' was not declared in this scope
TCCR1B = _BV(WGM13) | _BV(WGM12) | _BV(CS11) | _BV(CS10);
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino: In function 'void loop()':
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:317:3: error: 'TIMSK0' was not declared in this scope
TIMSK0 = 0;
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:349:3: error: 'OCR1A' was not declared in this scope
OCR1A = (F_CPU / 64) / linesPerSec; // Timer1 interval
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:355:13: error: 'TIFR1' was not declared in this scope
while(!(TIFR1 & _BV(TOV1))); // Wait for Timer1 overflow
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:355:25: error: 'TOV1' was not declared in this scope
while(!(TIFR1 & _BV(TOV1))); // Wait for Timer1 overflow
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:355:29: error: '_BV' was not declared in this scope
while(!(TIFR1 & _BV(TOV1))); // Wait for Timer1 overflow
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:356:5: error: 'TIFR1' was not declared in this scope
TIFR1 |= _BV(TOV1); // Clear overflow bit
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:356:18: error: 'TOV1' was not declared in this scope
TIFR1 |= _BV(TOV1); // Clear overflow bit
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:356:22: error: '_BV' was not declared in this scope
TIFR1 |= _BV(TOV1); // Clear overflow bit
^
/tmp/825833479/NeoPixel_Painter/NeoPixel_Painter.ino:376:2: error: 'TIMSK0' was not declared in this scope
TIMSK0 = 1;
^
exit status 1