项目作者: makecode-extensions

项目描述 :
ST LIS2MDL magnetic Sensor I2C extension for pxt-makecode.
高级语言: TypeScript
项目地址: git://github.com/makecode-extensions/LIS2MDL.git
创建时间: 2019-07-20T16:22:49Z
项目社区:https://github.com/makecode-extensions/LIS2MDL

开源协议:MIT License

下载


ST LIS2MDL magnetic Sensor Package

ST LIS2MDL magnetic Sensor I2C extension for makecode.

Author: shaoziyang
Date: 2019.Jul

Basic usage

  1. basic.forever(function () {
  2. serial.writeValue("x", LIS2MDL.magneticForce(LIS2MDL.Dimension.Strength))
  3. basic.pause(1000)
  4. })

License

MIT

Copyright (c) 2018, microbit/micropython Chinese community

Supported targets

  • for PXT/microbit

From microbit/micropython Chinese community