Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

wonderbits by mfeducation.

Project description

豌豆拼

重写了豌豆拼python硬件交互逻辑

from wonderbits import Display, wb_tool, Control, Led
import random
import time
# wb_tool.show_console()

d = Display()
c = Control()
l = Led()

for i in range(20):
    d.print(1,1,i)
    v = c.get_sw4()
    l.set_rgb(random.randint(0,255),random.randint(0,255),random.randint(0,255))
    print(v)
    time.sleep(1)

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 5.8.1
Filename, size File type Python version Upload date Hashes
Filename, size wonderbits-5.8.1-py2.py3-none-any.whl (44.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size wonderbits-5.8.1.tar.gz (25.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page