Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling for SAMD Board #9

Open
ludovicb1239 opened this issue Apr 3, 2021 · 2 comments
Open

Error compiling for SAMD Board #9

ludovicb1239 opened this issue Apr 3, 2021 · 2 comments

Comments

@ludovicb1239
Copy link

I'm using arduino mkr wifi 1010 and I'm getting this error:
Arduino\libraries\Arduino_ST7789_Fast-master/Arduino_ST7789_Fast.h:19:10: fatal error: avr/pgmspace.h: No such file or directory
#include <avr/pgmspace.h>

Will this ever work for a SAMD board or am I just missing a library ?

@cbm80amiga
Copy link
Owner

This library is optimized for AVR, never tested it with other MCUs

@SCWhite
Copy link

SCWhite commented Nov 25, 2021

HI @ludovicb1239 I manage to use this library on my ArduinoZero successfully

Arduino mkr wifi 1010 and ArduinoZero are actually using the same mcu (SAMD21).

so I think it should work, you just need to enable the "COMPATIBILITY_MODE" in the Arduino_ST7789_Fast.h file
I didn't have the same error you're getting, maybe some lib is missing?

let me know if you still have compiling problem, and we can work it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants