sparkfun / SparkFun_RGB_OLED_64x64_Arduino_Library

A fully featured Arduino library to support the RGB OLED 64x64 Display Breakout using the SSD1357 driver IC. Direct access to display RAM, drawing functions for pixels, lines, rectangles, and circles, and text display. A default font is built-in, and additional fonts can be hooked in by the user.
7 stars 4 forks source link

Error when compiling with other boards. #3

Open MuckYu opened 2 years ago

MuckYu commented 2 years ago

Hi,

I got one of these displays from a chinese supplier. They included a dev board with a STM32F103C8T6 on it.

I was trying to use one of the example sketches but get the following error. (With the board "Generic STM32F103C6/STM32F103C8" board selected.)

...Arduino\libraries\SparkFun_RGB_OLED_64x64_Library\src\SparkFun_SSD1357_OLED.cpp: In member function 'virtual size_t SSD1357::write(uint8_t)':

...Arduino\libraries\SparkFun_RGB_OLED_64x64_Library\src\SparkFun_SSD1357_OLED.cpp:394:3: error: return-statement with no value, in function returning 'size_t {aka unsigned int}' [-fpermissive]

   return; // Protect memory

   ^

exit status 1
Error compiling for board Generic STM32F103C6/fake STM32F103C8.

Any ideas what I could try/do?

For reference - the supplier included a program called FlyMcu which allows me to program it using a .hex file.

NigelHucanan commented 1 year ago

Hey there, is there a solution by now? I have the same issue with a code which works at a friend of mine with the same Seeeduino Xiao. Our library and board versions are the same, both Arduino IDEs are newly installed on different PCs. In his case it works, in my case not. Anyone an idea?