mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
update port/rt-thread/main.py.
This commit is contained in:
parent
08f227ffbb
commit
365d955074
@ -2,8 +2,12 @@ import PikaStdLib
|
|||||||
import pikaRTThread
|
import pikaRTThread
|
||||||
|
|
||||||
thread = pikaRTThread.Thread()
|
thread = pikaRTThread.Thread()
|
||||||
|
mem = PikaStdLib.MemChecker()
|
||||||
i = 0
|
i = 0
|
||||||
while i < 3:
|
while i < 3:
|
||||||
i = i + 1
|
i = i + 1
|
||||||
print('hello PikaScript!')
|
print('hello PikaScript!')
|
||||||
thread.mdelay(500)
|
thread.mdelay(500)
|
||||||
|
|
||||||
|
print('mem use max:')
|
||||||
|
mem.max()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user