mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
use the same main.py in document for keil simulation
This commit is contained in:
parent
58529cd6f2
commit
0d3a56377d
@ -552,7 +552,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>pikascript-core</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
@ -868,7 +868,7 @@
|
||||
|
||||
<Group>
|
||||
<GroupName>Python</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
|
@ -2,13 +2,15 @@ from PikaObj import *
|
||||
import Device
|
||||
import PikaStdLib
|
||||
|
||||
led = Device.LED()
|
||||
uart = Device.Uart()
|
||||
mem = PikaStdLib.MemChecker()
|
||||
|
||||
|
||||
for i in range(1, 10):
|
||||
print(i)
|
||||
|
||||
print('hello wrold')
|
||||
uart.setName('com1')
|
||||
uart.send('My name is:')
|
||||
uart.printName()
|
||||
print('mem used max:')
|
||||
mem.max()
|
||||
print('mem used now:')
|
||||
mem.now()
|
||||
mem.now()
|
||||
|
0
port/linux/api-make-linux.sh
Executable file → Normal file
0
port/linux/api-make-linux.sh
Executable file → Normal file
0
port/linux/api-make-win10.sh
Executable file → Normal file
0
port/linux/api-make-win10.sh
Executable file → Normal file
0
port/linux/api-make.sh
Executable file → Normal file
0
port/linux/api-make.sh
Executable file → Normal file
0
port/linux/ci_benchmark.sh
Executable file → Normal file
0
port/linux/ci_benchmark.sh
Executable file → Normal file
0
port/linux/ci_benchmark_run.sh
Executable file → Normal file
0
port/linux/ci_benchmark_run.sh
Executable file → Normal file
0
port/linux/gtest.sh
Executable file → Normal file
0
port/linux/gtest.sh
Executable file → Normal file
0
port/linux/init.sh
Executable file → Normal file
0
port/linux/init.sh
Executable file → Normal file
0
port/linux/install_dependency.sh
Executable file → Normal file
0
port/linux/install_dependency.sh
Executable file → Normal file
0
port/linux/make.sh
Executable file → Normal file
0
port/linux/make.sh
Executable file → Normal file
0
port/linux/pkg-push.sh
Executable file → Normal file
0
port/linux/pkg-push.sh
Executable file → Normal file
0
port/linux/pull-core.sh
Executable file → Normal file
0
port/linux/pull-core.sh
Executable file → Normal file
0
port/linux/push-core.sh
Executable file → Normal file
0
port/linux/push-core.sh
Executable file → Normal file
0
port/linux/run.sh
Executable file → Normal file
0
port/linux/run.sh
Executable file → Normal file
0
port/linux/test-banchmark.sh
Executable file → Normal file
0
port/linux/test-banchmark.sh
Executable file → Normal file
0
port/linux/update-compiler.sh
Executable file → Normal file
0
port/linux/update-compiler.sh
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user