16 lines
232 B
Python
Raw Normal View History

2021-10-23 21:51:20 +08:00
import PikaStdLib
2021-10-24 21:32:23 +08:00
import CH32V103
2021-10-23 21:51:20 +08:00
2021-10-24 10:19:26 +08:00
mem = PikaStdLib.MemChecker()
2021-10-23 21:51:20 +08:00
print('hello PikaScript !')
2021-10-24 21:32:23 +08:00
io1 = CH32V103.GPIO()
io1.init()
io1.setPin('PA1')
io1.setMode('out')
io1.enable()
io1.high()
2021-10-24 10:19:26 +08:00
print(1.4)
print('mem used max:')
mem.max()