code finished for testing, added serial monitor and debug output
This commit is contained in:
29
code/tools/start_monitor.bat
Normal file
29
code/tools/start_monitor.bat
Normal file
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
title Photon Feeder Mk2 Debug Monitor
|
||||
|
||||
:: Check if Python is available
|
||||
python --version >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Error: Python not found in PATH
|
||||
echo Please install Python from https://python.org
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: Check if pyserial is installed
|
||||
python -c "import serial" >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo Installing pyserial...
|
||||
pip install pyserial
|
||||
if errorlevel 1 (
|
||||
echo Error: Failed to install pyserial
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
:: Run the monitor
|
||||
cd /d "%~dp0"
|
||||
python feeder_monitor.py %*
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user