
#!/bin/bash

./bin/arduino-cli compile --fqbn arduino:avr:uno code --libraries $HOME/.arduino15/libraries/ --build-path ./build --clean

echo "Starting simulation..."

sleep 1

xdotool key ctrl+shift+p
xdotool type "Wokwi: Start Simulation"
xdotool key Return

