CosmicAbyss
New member
So I wrote a program to display images from a 2d array to a small OLED. It compiles and runs fine for a sparkfun redboard but when I compile for a teensy I get some odd errors.
declaration is
const unsigned char _Logo[6][2048]{};
which produces no errors and works as intended when compiled for the sparkfun board. upon compilation for the teensy 4.1 I get the following errors.
LittleBuddy.h:477: error: section attribute not allowed for '_Logo' };
LittleBuddy.h:477: error: too many initializers for 'const unsigned char [6][2048]' LittleBuddy.h:477: error: array must be initialized with a brace-enclosed initializer
spits out the brace enclosed message a couple hundred times. then ends with the initial error of.
section attribute not allowed for '_Logo'
Once I change it to brace enclosed initialization like it asks the messages change to just
section attribute not allowed for '_Logo'
Confusing as it works for the board I'm familiar with and errors out for the other and some googling of the errors hasn't led me to much. Appreciate any responses I get as this is my first time posting here.
Side this is an edit of the original SSD1327 library from adafruit as it wouldnt play nice being used in my library so I just edited mine into it
declaration is
const unsigned char _Logo[6][2048]{};
which produces no errors and works as intended when compiled for the sparkfun board. upon compilation for the teensy 4.1 I get the following errors.
LittleBuddy.h:477: error: section attribute not allowed for '_Logo' };
LittleBuddy.h:477: error: too many initializers for 'const unsigned char [6][2048]' LittleBuddy.h:477: error: array must be initialized with a brace-enclosed initializer
spits out the brace enclosed message a couple hundred times. then ends with the initial error of.
section attribute not allowed for '_Logo'
Once I change it to brace enclosed initialization like it asks the messages change to just
section attribute not allowed for '_Logo'
Confusing as it works for the board I'm familiar with and errors out for the other and some googling of the errors hasn't led me to much. Appreciate any responses I get as this is my first time posting here.
Side this is an edit of the original SSD1327 library from adafruit as it wouldnt play nice being used in my library so I just edited mine into it