Skip to content

Commit 783d55e

Browse files
...
1 parent 80c3b2e commit 783d55e

4 files changed

Lines changed: 64 additions & 0 deletions

File tree

led_test.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
VENV_DIR="psdenv"
4+
5+
# Check if the virtual environment directory exists
6+
if [ ! -d "$VENV_DIR" ]; then
7+
# Create the virtual environment
8+
python -m venv "$VENV_DIR"
9+
fi
10+
11+
# Activate the virtual environment and run the Python script
12+
source "$VENV_DIR/bin/activate"
13+
python scripts/test/led_test.py
14+
15+
# Pause for user input before closing (optional)
16+
read -p "Press Enter to continue..."

line_test.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
VENV_DIR="psdenv"
4+
5+
# Check if the virtual environment directory exists
6+
if [ ! -d "$VENV_DIR" ]; then
7+
# Create the virtual environment
8+
python -m venv "$VENV_DIR"
9+
fi
10+
11+
# Activate the virtual environment and run the Python script
12+
source "$VENV_DIR/bin/activate"
13+
python scripts/test/line_test.py
14+
15+
# Pause for user input before closing (optional)
16+
read -p "Press Enter to continue..."

servo_test.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
VENV_DIR="psdenv"
4+
5+
# Check if the virtual environment directory exists
6+
if [ ! -d "$VENV_DIR" ]; then
7+
# Create the virtual environment
8+
python -m venv "$VENV_DIR"
9+
fi
10+
11+
# Activate the virtual environment and run the Python script
12+
source "$VENV_DIR/bin/activate"
13+
python scripts/test/servo_test.py
14+
15+
# Pause for user input before closing (optional)
16+
read -p "Press Enter to continue..."

ultrasonic_sensor_test.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
VENV_DIR="psdenv"
4+
5+
# Check if the virtual environment directory exists
6+
if [ ! -d "$VENV_DIR" ]; then
7+
# Create the virtual environment
8+
python -m venv "$VENV_DIR"
9+
fi
10+
11+
# Activate the virtual environment and run the Python script
12+
source "$VENV_DIR/bin/activate"
13+
python scripts/test/ultrasonic_sensor_test.py
14+
15+
# Pause for user input before closing (optional)
16+
read -p "Press Enter to continue..."

0 commit comments

Comments
 (0)