use elif in main_snake for g030

This commit is contained in:
lyon 2021-12-20 00:18:13 +08:00
parent 71e86ff8b5
commit b95cf7a097
14 changed files with 3 additions and 13 deletions

View File

@ -816,11 +816,6 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\pikascript\pikascript-api\PikaPiZero_LCD-api.c</FilePath> <FilePath>..\pikascript\pikascript-api\PikaPiZero_LCD-api.c</FilePath>
</File> </File>
<File>
<FileName>PikaStdLib_List-api.c</FileName>
<FileType>1</FileType>
<FilePath>..\pikascript\pikascript-api\PikaStdLib_List-api.c</FilePath>
</File>
</Files> </Files>
</Group> </Group>
<Group> <Group>
@ -926,11 +921,6 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>..\pikascript\pikascript-lib\PikaStdDevice\PikaStdDevice_GPIO.c</FilePath> <FilePath>..\pikascript\pikascript-lib\PikaStdDevice\PikaStdDevice_GPIO.c</FilePath>
</File> </File>
<File>
<FileName>PikaStdLib_List.c</FileName>
<FileType>1</FileType>
<FilePath>..\pikascript\pikascript-lib\PikaStdLib\PikaStdLib_List.c</FilePath>
</File>
</Files> </Files>
</Group> </Group>
<Group> <Group>

View File

@ -128,12 +128,12 @@ while True:
if key_val == 0: if key_val == 0:
d = 0 d = 0
isUpdate = 1 isUpdate = 1
if key_val == 1: elif key_val == 1:
d = 1 d = 1
isUpdate = 1 isUpdate = 1
if key_val == 2: elif key_val == 2:
d = 2 d = 2
isUpdate = 1 isUpdate = 1
if key_val == 3: elif key_val == 3:
d = 3 d = 3
isUpdate = 1 isUpdate = 1

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/gtest.sh Executable file → Normal file
View File

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

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

0
port/linux/package/pikascript/rust-msc-latest-linux 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/test-banchmark.sh Executable file → Normal file
View File

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