2021-10-04 10:04:06 +08:00
|
|
|
import PikaStdLib
|
2023-11-10 23:22:31 +08:00
|
|
|
import PikaStdDevice
|
2021-10-04 10:04:06 +08:00
|
|
|
|
|
|
|
mem = PikaStdLib.MemChecker()
|
2023-11-10 23:22:31 +08:00
|
|
|
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)
|
|
|
|
|