27 lines
261 B
Python
Raw Normal View History

2021-11-30 21:29:25 +08:00
import PikaStdLib
2021-12-27 16:10:11 +08:00
import W801Device
pb5=W801Device.GPIO()
pb5.init()
pb5.setPin('PB5')
pb5.setMode('out')
pb5.setPull('up')
pb5.enable()
2021-11-30 21:29:25 +08:00
print('hello PikaScript!')
2021-12-27 16:10:11 +08:00
while True:
pb5.high()
print('h')
pb5.low()
print('l')