-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
46 lines (42 loc) · 1.25 KB
/
setup.bat
File metadata and controls
46 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
echo ================================================
echo RAMCOD — First-time Setup
echo ================================================
echo.
:: Create profiles folder
if not exist "profiles" (
mkdir profiles
echo [OK] Created profiles folder
) else (
echo [OK] Profiles folder already exists
)
:: Install Python dependencies
echo.
echo [1/3] Installing Python dependencies...
cd src\python
pip install -r requirements.txt
cd ..\..
:: Compile Wokwi firmware
echo.
echo [2/3] Compiling Wokwi simulation firmware...
if exist "arduino-cli.exe" (
arduino-cli.exe compile --fqbn arduino:avr:uno --output-dir src\wokwi\build src\wokwi\RAMCOD_wokwi
echo [OK] Firmware compiled
) else (
echo [SKIP] arduino-cli.exe not found in project root.
echo Download from: https://github.com/arduino/arduino-cli/releases/latest
echo Place arduino-cli.exe in this folder and run setup.bat again.
)
echo.
echo [3/3] Setup complete!
echo.
echo To run RAMCOD:
echo python src\python\main.py
echo.
echo To run Wokwi simulation:
echo 1. Open VS Code in this folder
echo 2. Press F1 - Wokwi: Select Config File - select src\wokwi\wokwi.toml
echo 3. Press F1 - Wokwi: Start Simulator
echo 4. Run: python src\python\main.py
echo.
pause