26 lines
378 B
Python
Raw Normal View History

2021-10-04 10:04:06 +08:00
import PikaStdLib
import PikaStdDevice
2021-10-04 10:04:06 +08:00
mem = PikaStdLib.MemChecker()
io1 = PikaStdDevice.GPIO()
time = PikaStdDevice.Time()
2021-10-04 10:04:06 +08:00
2021-10-04 11:19:17 +08:00
io1.setPin('PA8')
2021-10-04 10:04:06 +08:00
io1.setMode('out')
io1.enable()
io1.low()
print('hello pikascript')
print('mem.max :')
mem.max()
print('mem.now :')
mem.now()
while True:
2022-03-18 00:02:43 +08:00
mem.now()
2021-10-04 10:04:06 +08:00
io1.low()
time.sleep_ms(500)
io1.high()
2021-10-04 10:59:39 +08:00
time.sleep_ms(500)