#!/usr/bin/bash

# This script sets up the Arduino IDE with all the correct board options (as found in the IDE "Tools" menu)

# Board spec for "Lilygo TTGO T7 V1.3 Mini32"
BOARDSPEC=esp32:esp32:esp32:CPUFreq=240,FlashFreq=80,FlashSize=4M,PartitionScheme=default,DebugLevel=none
# Alternatively:
#BOARDSPEC=esp32:esp32:ttgo-t7-v13-mini32:CPUFreq=240,FlashFreq=80,FlashSize=4M,PartitionScheme=default,DebugLevel=none

# Fill in your COM port here
COMPORT=/dev/ttyUSB0

# Get the full directory name of the currently running script
\cd `dirname $0`
MYPATH=`pwd`
\cd - > /dev/null

# Launch the Arduino IDE with the specified board options
. "${MYPATH}/../../extras/Scripts/ArduinoIdeEnv.sh"
