#!/bin/bash

# Prompt the user to select the board
echo "Select the board:"
select board in uno mega nano; do
    case $board in
        uno)
            board_type="arduino:avr:uno"
            break
            ;;
        mega)
            board_type="arduino:avr:mega"
            break
            ;;
        nano)
            board_type="arduino:avr:nano"
            break
            ;;
        *)
            echo "Invalid option. Please try again."
            ;;
    esac
done

# Compile the sketch
arduino-cli compile --fqbn $board_type $1

# Add any additional commands here

