https://www.st.com/zh/mems-and-sensors/lis2mdl.html
from machine import I2C
import LIS2MDL
i2c = I2C(1)
mdl = LIS2MDL.LIS2MDL(i2c)
mdl.x()
mdl.get()
From microbit/micropython Chinese community.
www.micropython.org.cn
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
https://www.st.com/zh/mems-and-sensors/lis2mdl.html
from machine import I2C
import LIS2MDL
i2c = I2C(1)
mdl = LIS2MDL.LIS2MDL(i2c)
mdl.x()
mdl.get()
From microbit/micropython Chinese community.
www.micropython.org.cn