M5GFX icon indicating copy to clipboard operation
M5GFX copied to clipboard

ESP32-C6 Compatibility Issues: Deprecated Undefined Wire1 Symbol in M5GFX

Open troglodisme opened this issue 1 year ago • 1 comments

I encountered issues while compiling a project using the M5GFX library with an ESP32-C6. The error suggest compatibility problems with the ESP32-C6 platform. Below are the details:

Steps to Reproduce:

1.	Use PlatformIO with the ESP32-C6 framework.

platform = https://github.com/pioarduino/platform-espressif32/releases/download/51.03.07/platform-espressif32.zip
    board = esp32-c6-devkitc-1

2.	Include the M5GFX library in the project.
3.	Attempt to build the project.

Error: Undefined Wire1 The file common.cpp references Wire1, which is not declared in the current scope:

error: 'Wire1' was not declared in this scope; did you mean 'Wire'?

Suggested Fixes:

Implement conditional compilation or provide an alternative to Wire1 for ESP32-C6, as this platform might not define Wire1 by default.

troglodisme avatar Nov 15 '24 23:11 troglodisme

Hello, @troglodisme Thank you for pointing this out.

This issue should likely be resolved in the latest release, v0.2.0. If the issue persists after updating, please let us know.

lovyan03 avatar Nov 22 '24 05:11 lovyan03

I think this issue is resolved so I'll close it. Thanks

lovyan03 avatar Sep 08 '25 02:09 lovyan03