aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorZoltan Szabatin <[email protected]>2025-02-25 16:12:49 -0800
committerZoltan Szabatin <[email protected]>2025-02-25 16:12:49 -0800
commitbdcc991a5a3bec5e136be97b14de8e51939f3652 (patch)
tree9433cf8c24a447d88ec19077c4a2966ef511783c /justfile
parentfeat: Add Pygame menu (diff)
downloadsplitscreen-duo-bdcc991a5a3bec5e136be97b14de8e51939f3652.tar.xz
splitscreen-duo-bdcc991a5a3bec5e136be97b14de8e51939f3652.zip
feat: Add serial interface
Diffstat (limited to 'justfile')
-rw-r--r--justfile12
1 files changed, 7 insertions, 5 deletions
diff --git a/justfile b/justfile
index 621ae68..dfff4c9 100644
--- a/justfile
+++ b/justfile
@@ -1,12 +1,14 @@
default:
just --list
-create_serial_port:
- socat -d -d pty,raw,echo=0 pty,raw,echo=0 &
+create_serial_devices:
+ socat -d -d pty,raw,echo=0,link=/tmp/primary-serial pty,raw,echo=0,link=/tmp/secondary-serial &> /dev/null &
-kill_serial_port:
+kill_serial_devices:
pkill socat
run:
- DEVELOPMENT=1 INSTANCE=primary rye run splitscreen_duo &
- DEVELOPMENT=1 INSTANCE=secondary rye run splitscreen_duo &
+ just create_serial_devices
+ SERIAL_DEVICE=/tmp/primary-serial DEVELOPMENT=1 INSTANCE=primary rye run splitscreen_duo &
+ SERIAL_DEVICE=/tmp/secondary-serial DEVELOPMENT=1 INSTANCE=secondary rye run splitscreen_duo
+ just kill_serial_devices