wonderbits by mfeducation.


License
MIT
Install
pip install wonderbits==6.0.9

Documentation

豌豆拼

重写了豌豆拼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)