ALICHOUCHENE / Qmi8658c

Arduino library provides a convenient interface for working with the QMI8658C inertial measurement unit (IMU) on Arduino platforms
MIT License
10 stars 4 forks source link

Compiler Errors using Arduino IDE 2.x #4

Open bhagmeister opened 5 months ago

bhagmeister commented 5 months ago

Apologies ahead of time as I am not an app developer. I’ve just purchased a Waveshare ESP32S3 Dev Board complete with 1.28 inch Touch LCD and integrated QMI8658 6-axis IMU (https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.28). I’ve installed your driver as found within the Library search function (“Qmi8658c”, v 1.0.0). When I explicitly attempt to use your Lib, I get fatal compiler errors such as: Qmi8658c.cpp:93:10: error: return-statement with no value, in function returning 'uint8_t' {aka 'unsigned char'} [-fpermissive] 93 | return; . . .

Can you suggest a (type declaration) fix? thanks

Note: Waveshare provides their demo code with their own un-attributed QMI8658 library (https://files.waveshare.com/wiki/ESP32-S3-Touch-LCD-1.28/Esp32-s3-touch-lcd-1.28-code.zip). If possible, I’d much prefer to use yours.

lohriialo commented 2 months ago

@bhagmeister did you manage to get it working? I also have the same waveshare unit ESP32-S3-Touch-LCD-1.28 and want to get this lib working which is much simplier than the one provided by Waveshare

lohriialo commented 2 months ago

compile error is fixed by https://github.com/ALICHOUCHENE/Qmi8658c/pull/5/commits/2b6a9f0fccea3e75da38a75f5d99f145e85de03b