m5stack / M5Stack

M5Stack Arduino Library
MIT License
1.19k stars 425 forks source link

M5Stack library isn't compatible with M5Stack CoreS3 #316

Closed DenDonnar closed 2 weeks ago

DenDonnar commented 8 months ago

Describe the bug

I wanted to just display simple "Hello, World" on a M5Stack CoreS3, but I've got that error msg:

In file included from c:\Arduino\libraries\M5Stack\src/M5Display.h:8, from c:\Arduino\libraries\M5Stack\src/M5Stack.h:111, from C:\Arduino\sketch_oct25a\sketch_oct25a.ino:1: c:\Arduino\libraries\M5Stack\src/utility/In_eSPI.h:633:20: error: 'VSPI' was not declared in this scope uint8_t port = VSPI; ^~~~ c:\Arduino\libraries\M5Stack\src/utility/In_eSPI.h:633:20: note: suggested alternative: 'SPI' uint8_t port = VSPI; ^~~~ SPI

To reproduce

1 Arduino IDE (with M5Stack.h installed) 2 Connect M5Stack CoreS3 3 Try tu upload that simple code:

include

void setup() { M5.begin(); M5.Lcd.fillScreen(BLACK); M5.Lcd.setTextColor(WHITE, BLACK);
M5.Lcd.setTextSize(2); M5.Lcd.setCursor(0, 0); M5.Lcd.print("Hello, World!"); }

void loop() {

}

Expected behavior

To see "Hello, World!" on my M5StackCoreS3 Screen

Screenshots

No response

Environment

Additional context

No response

Issue checklist

felmue commented 8 months ago

Hello @DenDonnar

there is a separate library for M5CoreS3. Please see here.

Thanks Felix