Skip to content

Commit

Permalink
add the ability to decide what env
Browse files Browse the repository at this point in the history
  • Loading branch information
InzynierDomu committed Jun 13, 2024
1 parent 31aa7d5 commit 91ea8a3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions autodeploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,23 @@ exit
:: Path to the Arduino project
set project_path=.\

:: Arduino board type (e.g., uno, nano, etc.)
set board_type=nanoatmega328_oled
:: Asking the user to select the board type
echo Please select the board type:
echo 1. nanoatmega328_oled
echo 2. nanoatmega328_lcd
set /p choice="Enter the number (1 or 2): "

:: Setting the board type based on the user input
if "%choice%"=="1" (
set board_type=nanoatmega328_oled
) else if "%choice%"=="2" (
set board_type=nanoatmega328_lcd
) else (
echo Invalid choice. Exiting.
echo Press Enter to exit.
pause >nul
exit
)

:: Port to which Arduino is connected
set port=arduino_port
Expand Down

0 comments on commit 91ea8a3

Please sign in to comment.