2021-10-04 10:04:06 +08:00
|
|
|
import PikaStdLib
|
2022-02-20 20:25:59 +08:00
|
|
|
import machine
|
2021-10-04 10:04:06 +08:00
|
|
|
|
|
|
|
mem = PikaStdLib.MemChecker()
|
2022-02-20 20:25:59 +08:00
|
|
|
io1 = machine.GPIO()
|
|
|
|
time = machine.Time()
|
2021-10-04 10:04:06 +08:00
|
|
|
|
|
|
|
io1.init()
|
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)
|
|
|
|
|