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

Compilation error: 'I2C_IMU' does not name a type #1

Open
BH2VSQ opened this issue Jul 27, 2023 · 3 comments
Open

Compilation error: 'I2C_IMU' does not name a type #1

BH2VSQ opened this issue Jul 27, 2023 · 3 comments

Comments

@BH2VSQ
Copy link

BH2VSQ commented Jul 27, 2023

I installed the package and open the example "IMU.ino". After I click the compilation, the software told me that 'I2C_IMU' does not name a type. So Whether I need to install a library to make the 'I2C_IMU' useable?

@Tinyu-Zhao
Copy link
Owner

I installed the package and open the example "IMU.ino". After I click the compilation, the software told me that 'I2C_IMU' does not name a type. So Whether I need to install a library to make the 'I2C_IMU' useable?

This library is externally referenced to M5CoreS3 and needs to be used in conjunction with it.

@BH2VSQ
Copy link
Author

BH2VSQ commented Jul 27, 2023

I added #include <M5CoreS3.h> and set the module to ESP32S3 Dev Module. Then the compiltion works well. But I only have ESP32-C3 DEV Module from luat. As I set the Module to ESP32C3 Dev Module, the compiltion always failed with
In file included from C:\Users\*\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32c3/include/driver/include/driver/i2c.h:24, from c:\Users\*\Documents\Arduino\libraries\M5CoreS3\src/utility/I2C_IMU.h:5, from c:\Users\*\Documents\Arduino\libraries\M5CoreS3\src/M5CoreS3.h:16, from D:\Desktop\esp32c3\IMU\IMU.ino:1: C:\Users\*\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.5/tools/sdk/esp32c3/include/hal/include/hal/i2c_types.h:85:28: error: #if with no expression #if CONFIG_IDF_TARGET_ESP32 ^
Are there any solutions to make it works on ESP32C3 Module?

@Tinyu-Zhao
Copy link
Owner

M5CoreS3 use esps3 chip..

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

2 participants