mPython-motor

Motor control by i2c communication for mPython library


License
MIT
Install
pip install mPython-motor==0.0.2

Documentation

概述

Motor control by i2c communication for mPython library

更多的mPython library:https://github.com/labplus-cn/mPython-lib

库的安装方法

可通过以下任一方法进行安装。

  1. 将项目中的motor.py
  2. 在掌控板REPL界面中,使用upip安装,步骤如下:
    • 前置条件需要掌控板连接网络
    • 导入upip模块,执行import upip
    • 执行`upip.install('mPython-motor')
>>> import upip
>>> upip.install('mPython-motor')

使用

电机控制通讯协议数据:

Type Command motor_no speed(int)
控制电机 0x01 0x01/0x02 -100~100

motor Library Documentation:https://mpython-lib.readthedocs.io

执照

所有代码均在MIT许可下发布。