mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
25 lines
356 B
Python
25 lines
356 B
Python
import PikaStdLib
|
|
import machine
|
|
|
|
print('hello PikaScript!')
|
|
mem = PikaStdLib.MemChecker()
|
|
print('mem used max:')
|
|
mem.max()
|
|
|
|
# io1 = machine.GPIO()
|
|
|
|
# io1.init()
|
|
# io1.setPin('P5')
|
|
# io1.setMode('out')
|
|
# io1.enable()
|
|
# io1.high()
|
|
|
|
# io2 = machine.GPIO()
|
|
|
|
# io2.init()
|
|
# io2.setPin('P4')
|
|
# io2.setMode('in')
|
|
# io2.enable()
|
|
# a = io2.read()
|
|
|
|
# print("OK", a) |