Micropython driver for QMC5883L digital compass
Should be compatible with most micropython platforms, tested on ESP32-C3.
import qmc5883l
bus = SoftI2C(scl=Pin(3), sda=Pin(4), freq=100000)
qmc = QMC5883L(bus)
(x, y, z, status, temperature) = qmc.read()
- Based on:
- Which is in turn based on:
- Heading algorithm from here: