Using wire.h instead of M5Stack.h
https://github.com/BoschSensortec/BMM150-Sensor-API
https://github.com/m5stack/M5_BMM150
https://github.com/m5stack/M5Unified
BMM150.c, BMM150.h, BMM150defs.h: BSD-3-Clause license by BoschSensortec
Others: MIT License
Arduino 1.8.19
Board manager version:
M5Stack-Core-ESP32(ESP32) 2.0.3 or M5Stack-Core-ESP32(M5Stack) 1.0.9
(PSRAM=Disable)
M5Stack-Fire-ESP32(ESP32) 2.0.3 or M5Stack-Fire-ESP32(M5Stack) 1.0.9
M5Unified 0.0.7
M5CoreS3 SDA:G12, SCL:G11, BMM150 I2C is connected via BMI270 AUX I/F.