use the same main.py in document for keil simulation

This commit is contained in:
lyon 2022-01-26 16:18:31 +08:00
parent 58529cd6f2
commit 0d3a56377d
17 changed files with 9 additions and 7 deletions

View File

@ -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>

View File

@ -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
View File

0
port/linux/api-make-win10.sh Executable file → Normal file
View File

0
port/linux/api-make.sh Executable file → Normal file
View File

0
port/linux/ci_benchmark.sh Executable file → Normal file
View File

0
port/linux/ci_benchmark_run.sh Executable file → Normal file
View File

0
port/linux/gtest.sh Executable file → Normal file
View File

0
port/linux/init.sh Executable file → Normal file
View File

0
port/linux/install_dependency.sh Executable file → Normal file
View File

0
port/linux/make.sh Executable file → Normal file
View File

0
port/linux/pkg-push.sh Executable file → Normal file
View File

0
port/linux/pull-core.sh Executable file → Normal file
View File

0
port/linux/push-core.sh Executable file → Normal file
View File

0
port/linux/run.sh Executable file → Normal file
View File

0
port/linux/test-banchmark.sh Executable file → Normal file
View File

0
port/linux/update-compiler.sh Executable file → Normal file
View File