adafruit / RGB-matrix-Panel

Arduino library and example code for the 16x32 RGB matrix panels in the shop
http://www.adafruit.com/products/420
303 stars 145 forks source link

Test Code/Examples only work on Arduino 1.5.x not Arduino 1.0.x #7

Closed anthroprose closed 11 years ago

anthroprose commented 11 years ago

The readme should be updated to note that this test code will only work on newer versions of Arduino, took me a bit to figure this part out.

So maybe this is possible a gcc/arduino combination or somehow limited to the Ubuntu distro?

PaintYourDragon commented 11 years ago

Compiles in Arduino 1.0.x, requires Adafruit_GFX library also.

anthroprose commented 11 years ago

Using: Arduino 1.0.3 with Adafruit_GFX

scrolltext16x32: avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Adafruit_GFX -I/usr/share/arduino/libraries/RGBmatrixPanel /tmp/build2859037645979501641.tmp/scrolltext_16x32.cpp -o /tmp/build2859037645979501641.tmp/scrolltext_16x32.cpp.o scrolltext_16x32.pde:27:29: error: variable ‘ballcolor’ must be const in order to be put into read-only section by means of ‘attribute((progmem))’

Plasma16x32: avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Adafruit_GFX -I/usr/share/arduino/libraries/RGBmatrixPanel /tmp/build2859037645979501641.tmp/plasma_16x32.cpp -o /tmp/build2859037645979501641.tmp/plasma_16x32.cpp.o plasma_16x32.pde:19:28: error: variable ‘sinetab’ must be const in order to be put into read-only section by means of ‘attribute((progmem))’

Testshapes16x32: avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Adafruit_GFX -I/usr/share/arduino/libraries/RGBmatrixPanel /tmp/build2859037645979501641.tmp/testshapes_16x32.cpp -o /tmp/build2859037645979501641.tmp/testshapes_16x32.cpp.o avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Adafruit_GFX -I/usr/share/arduino/libraries/RGBmatrixPanel -I/usr/share/arduino/libraries/Adafruit_GFX/utility /usr/share/arduino/libraries/Adafruit_GFX/glcdfont.c -o /tmp/build2859037645979501641.tmp/Adafruit_GFX/glcdfont.c.o avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Adafruit_GFX -I/usr/share/arduino/libraries/RGBmatrixPanel -I/usr/share/arduino/libraries/Adafruit_GFX/utility /usr/share/arduino/libraries/Adafruit_GFX/Adafruit_GFX.cpp -o /tmp/build2859037645979501641.tmp/Adafruit_GFX/Adafruit_GFX.cpp.o avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=103 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/usr/share/arduino/hardware/arduino/variants/standard -I/usr/share/arduino/libraries/Adafruit_GFX -I/usr/share/arduino/libraries/RGBmatrixPanel -I/usr/share/arduino/libraries/RGBmatrixPanel/utility /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp -o /tmp/build2859037645979501641.tmp/RGBmatrixPanel/RGBmatrixPanel.cpp.o In file included from /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:29:0: /usr/share/arduino/libraries/RGBmatrixPanel/gamma.h:6:16: error: ‘prog_uchar’ does not name a type /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp: In member function ‘uint16_t RGBmatrixPanel::Color888(uint8_t, uint8_t, uint8_t, boolean)’: /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:209:9: error: ‘gamma’ was not declared in this scope /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:210:9: error: ‘gamma’ was not declared in this scope /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:211:9: error: ‘gamma’ was not declared in this scope /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp: In member function ‘uint16_t RGBmatrixPanel::ColorHSV(long int, uint8_t, uint8_t, boolean)’: /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:250:9: error: ‘gamma’ was not declared in this scope /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:251:9: error: ‘gamma’ was not declared in this scope /usr/share/arduino/libraries/RGBmatrixPanel/RGBmatrixPanel.cpp:252:9: error: ‘gamma’ was not declared in this scope