Hello,
I am trying to run Arduino UNO + ST7789V2(M5stack), but when I try to run just sample basic program from M5stack, I always got an error:
internal\memory.h:13:10: fatal error: memory: No such file or directory
include memory
compilation terminated. exit status 1".
I have same result on two different PC. What do I need to check?
With wiring everything fine, and communication ok.
Thank you in advance!
Program what I try to run(official m5stack):
include <M5UnitLCD.h>
M5UnitLCD display;
M5Canvas canvas(&display);
static constexpr char text[] = "11"; static constexpr size_t textlen = sizeof(text) / sizeof(text[0]); int textpos = 0; int scrollstep = 2;
void setup(void) { display.init(); display.setRotation(2); canvas.setColorDepth(1); // mono color canvas.setFont(&fonts::lgfxJapanMinchoP_32);
canvas.setTextWrap(false); canvas.setTextSize(2); canvas.createSprite(display.width() + 64, 72); }
void loop(void) { int32_t cursor_x = canvas.getCursorX() - scrollstep; if (cursor_x <= 0) { textpos = 0; cursor_x = display.width(); }
canvas.setCursor(cursor_x, 0); canvas.scroll(-scrollstep, 0);
while (textpos < textlen && cursor_x <= display.width()) { canvas.print(text[textpos++]); cursor_x = canvas.getCursorX(); } display.waitDisplay(); canvas.pushSprite(&display, 0, (display.height() - canvas.height()) >> 1); }`