added demo9

This commit is contained in:
ZennDev1337 2023-09-20 14:05:43 +02:00
parent 28d1b1a6da
commit 65db708e61
11 changed files with 243 additions and 73 deletions

37
run.bat
View file

@ -5,48 +5,21 @@ set option=%1
if [%option%]==[] (
powershell -Command "cargo build -p game --release; cp ./target/arduboy/release/libgame.a ./arduboy-rust/Wrapper-Project/lib/libgame.a; cd arduboy-rust/Wrapper-Project/; pio run -v -t upload; cp ./.pio/build/arduboy/firmware.hex ./build/game.hex; pio run -t clean; rm lib/libgame.a; cd ../../"
goto :eof
)
if %option%==snake (
goto :run
) else if %option%==doc (
powershell -Command "cargo doc -p arduboy-rust; rm -r ./docs/doc/; cp -r ./target/arduboy/doc ./docs/"
goto :eof
) else if %option%==pong (
goto :run
) else if %option%==drboy (
goto :run
) else if %option%==ardvoice (
goto :run
) else if %option%==rustacean (
goto :run
) else if %option%==tone (
goto :run
) else if %option%==eeprom (
goto :run
) else if %option%==eeprom-byte (
powershell -Command "cargo build -p %option% --release; cp ./target/arduboy/release/libeeprom_byte.a ./arduboy-rust/Wrapper-Project/lib/libgame.a; cd arduboy-rust/Wrapper-Project/; pio run -v -t upload; cp ./.pio/build/arduboy/firmware.hex ./build/%option%.hex; pio run -t clean; rm lib/libgame.a; cd ../../"
goto :eof
) else if %option%==progmem (
goto :run
) else if %option%==demo2 (
goto :run
) else if %option%==demo3 (
goto :run
) else if %option%==demo4 (
goto :run
) else if %option%==demo5 (
goto :run
) else if %option%==demo6 (
goto :run
) else if %option%==demo7 (
goto :run
goto :eof
) else (
goto :run
)
:run
powershell -Command "cargo build -p %option% --release; cp ./target/arduboy/release/lib%option%.a ./arduboy-rust/Wrapper-Project/lib/libgame.a; cd arduboy-rust/Wrapper-Project/; pio run -v -t upload; cp ./.pio/build/arduboy/firmware.hex ./build/%option%.hex; pio run -t clean; rm lib/libgame.a; cd ../../"
powershell -Command "$ErrorActionPreference='Stop'; cargo build -p %option% --release; cp ./target/arduboy/release/lib%option%.a ./arduboy-rust/Wrapper-Project/lib/libgame.a; cd arduboy-rust/Wrapper-Project/; pio run -v -t upload; cp ./.pio/build/arduboy/firmware.hex ./build/%option%.hex; pio run -t clean; rm lib/libgame.a; cd ../../"
if ERRORLEVEL 1 (
goto :help
)
goto :eof
:help