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

Do you support M5stack CoreS3?? can't see it in the listed devices #507

Closed
cohen-sydney opened this issue Jan 20, 2024 · 6 comments
Closed
Labels
device support request Add new device driver stale Inactive issues

Comments

@cohen-sydney
Copy link

Carefully written requests are more likely to be given priority.
丁寧に記述された要望は優先して対応される可能性が高くなります。

Do you support M5stack CoreS3?? can't see it in the listed devices "How to use" the Define is not there.
also M5Paper??

Device Name (デバイスの名称・型番等)

M5Stack CoreS3

URL of Device Specifications document (仕様書等のURL)

https://docs.m5stack.com/en/core/CoreS3

URL of the store where we can purchase (商品を購入できるURL)

@cohen-sydney cohen-sydney added the device support request Add new device driver label Jan 20, 2024
@cohen-sydney
Copy link
Author

I used Arduino to couple this ClockSample.ino for M5CoreS3 and it errors.
/Users/andrew/Documents/Arduino/ClockSimple/ClockSample/ClockSample.ino:6:8: error: 'LGFX' does not name a type
static LGFX lcd;
^~~~
/Users/andrew/Documents/Arduino/ClockSimple/ClockSample/ClockSample.ino:7:28: error: 'lcd' was not declared in this scope
static LGFX_Sprite canvas(&lcd); // オフスクリーン描画用バッファ
^~~
/Users/andrew/Documents/Arduino/ClockSimple/ClockSample/ClockSample.ino: In function 'void setup()':
/Users/andrew/Documents/Arduino/ClockSimple/ClockSample/ClockSample.ino:27:3: error: 'lcd' was not declared in this scope
lcd.init();
^~~
/Users/andrew/Documents/Arduino/ClockSimple/ClockSample/ClockSample.ino: In function 'void drawClock(uint64_t)':
/Users/andrew/Documents/Arduino/ClockSimple/ClockSample/ClockSample.ino:166:3: error: 'lcd' was not declared in this scope
lcd.display();
^~~

exit status 1

Compilation error: 'LGFX' does not name a type

@tobozo
Copy link
Collaborator

tobozo commented Jan 20, 2024

  • Declare this before including LovyanGFX
#define LGFX_AUTODETECT  
  • If using Arduino IDE, make sure "M5Stack CoreS3" is selected from the Arduino boards menu
  • If using platformio, make sure you add those build flags in your environment section:
build_flags =  -DARDUINO_M5STACK_CORES3

@cohen-sydney
Copy link
Author

@tobozo thanks I am using Arduino IDE.

@cohen-sydney
Copy link
Author

Yep got it working thanks, just now need to set the time. should I connect to WiFi and use NTP, thoughts?

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Inactive issues label Feb 20, 2024
Copy link

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device support request Add new device driver stale Inactive issues
Projects
None yet
Development

No branches or pull requests

2 participants