Skip to main content

wonderbits by mfeducation.

Project description




Powered by MFEducation(梦孚教育科技)

  1. 包含各个模块的api

    • 显示模块
    • 控制模块
    • 彩灯模块
    • 射频通信模块
    • 等等
  2. sdk中包含串口通信功能

    • 插上硬件模块可以直接通信


创建一个py文件 如

# 导入需要的模块
from wonderbits import Display, Led, Control
import random

# 创建必要的模块对象
display1 = Display()
led = Led()
control1 = Control()

# 豌豆拼硬件复位等待时间,后期会优化

# 定义一个全局变量
content = 1
while True:
    # 在显示模块上第一行第一列显示变量content
    display1.print(1, 1, content)
    content = content + 1
    # 设置彩灯模块颜色, 颜色随机
    led.set_rgb(random.randint(0, 255), random.randint(0, 255), random.randint(0, 255))
    # 获取控制模块sw4开关状态值
    sw4 = control1.get_sw4()
    # 获取开关sw3的位置
    isAtOne = control1.is_sw3_at_1()
    print('我收到sw在1位置: {}'.format(isAtOne))



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wonderbits, version 4.1.1
Filename, size File type Python version Upload date Hashes
Filename, size wonderbits-4.1.1-py2.py3-none-any.whl (8.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size wonderbits-4.1.1.tar.gz (8.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page