2021-12-27 16:10:11 +08:00

27 lines
261 B
Python

import PikaStdLib
import W801Device
pb5=W801Device.GPIO()
pb5.init()
pb5.setPin('PB5')
pb5.setMode('out')
pb5.setPull('up')
pb5.enable()
print('hello PikaScript!')
while True:
pb5.high()
print('h')
pb5.low()
print('l')