init
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
TMPDIR=".tmp"
|
||||
ARDUINO_CLI_URL="https://github.com/arduino/arduino-cli/releases/download/0.33.1/arduino-cli_0.33.1_Linux_64bit.tar.gz"
|
||||
|
||||
# check .tmp directory
|
||||
if [ ! -d "./.tmp" ]; then
|
||||
mkdir ./$TMPDIR
|
||||
fi
|
||||
|
||||
# download arduino-cli
|
||||
wget $ARDUINO_CLI_URL -O ./$TMPDIR/arduino-cli_0.33.1_Linux_64bit.tar.gz
|
||||
|
||||
# unpack arduino-cli
|
||||
tar -xf ./$TMPDIR/arduino-cli_0.33.1_Linux_64bit.tar.gz
|
||||
rm LICENSE.txt
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# check `arduino-cli` binary exist
|
||||
if [ ! -f "./arduino-cli" ]; then
|
||||
echo "Run './scripts/01-download-arduino-cli.sh' script for download Arduino CLI"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# install core
|
||||
./arduino-cli --config-file arduino-cli.yaml core install arduino:avr
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# check `arduino-cli` binary exist
|
||||
if [ ! -f "./arduino-cli" ]; then
|
||||
echo "Run './scripts/01-download-arduino-cli.sh' script for download Arduino CLI"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./arduino-cli --config-file arduino-cli.yaml board list
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
SKETCH_FOLDER='Sketch'
|
||||
|
||||
# check .tmp directory
|
||||
if [ ! -d "./$SKETCH_FOLDER" ]; then
|
||||
echo "Drop Sketch to Sketch folder"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
|
||||
./arduino-cli --config-file arduino-cli.yaml compile -b arduino:avr:uno ./$SKETCH_FOLDER
|
||||
Reference in New Issue
Block a user