ST LIS2MDL magnetic Sensor I2C extension for makecode.
Author: shaoziyang
Date: 2019.Jul
basic.forever(function () {
serial.writeValue("x", LIS2MDL.magneticForce(LIS2MDL.Dimension.Strength))
basic.pause(1000)
})
MIT
Copyright (c) 2018, microbit/micropython Chinese community
- for PXT/microbit