Skip to content

Add MPU6886 driver (tested with M5Stack FIRE)#56

Merged
ThomasFarstrike merged 1 commit intoMicroPythonOS:mainfrom
jedie:MPU6886
Feb 21, 2026
Merged

Add MPU6886 driver (tested with M5Stack FIRE)#56
ThomasFarstrike merged 1 commit intoMicroPythonOS:mainfrom
jedie:MPU6886

Conversation

@jedie
Copy link
Copy Markdown
Contributor

@jedie jedie commented Feb 18, 2026

Will fix #44

@jedie jedie force-pushed the MPU6886 branch 3 times, most recently from d7eeb49 to 1b60a26 Compare February 18, 2026 22:29
@jedie jedie changed the title WIP: Add MPU6886 driver (tested with M5Stack FIRE) Add MPU6886 driver (tested with M5Stack FIRE) Feb 18, 2026
SensorManager.init(
i2c_bus=i2c_bus,
address=MPU6886_I2C_ADDR,
mounted_position=SensorManager.FACING_EARTH,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea if "FACING_EARTH" is correct

self.gyro_offset = list(gyro_offsets)


class _MPU6886Driver(_IMUDriver):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most parts of this is copied from _QMI8658Driver
Don't know if everything is correct. If so: It's possible to merge many code parts by create a base class or mixin.

@ThomasFarstrike
Copy link
Copy Markdown
Contributor

Looks good to me, I will test before making the next release :-)

@ThomasFarstrike ThomasFarstrike merged commit ef30c80 into MicroPythonOS:main Feb 21, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

M5Stack FIRE sensors...

2 participants