只需要更改main.py文件的内容即可,例程CRTL+V
1、流水灯:
# main.py -- put your code here!
import pyb
while(1):
for n in range(1,5)
led=pyb.LED(n)
led.on()
pyb.delay(1000)
led.off()
2、灯条,可以改变delay值来凸显效果!!!
# main.py -- put your code here!
import pyb
while(1):
for n in range(1,5):
led=pyb.LED(n)
led.toggle()
pyb.delay(200)