Skip to content

Commit

Permalink
Merge pull request #16 from anarkiwi/a2
Browse files Browse the repository at this point in the history
Use arduino 2.
  • Loading branch information
anarkiwi committed Oct 9, 2022
2 parents 971e304 + 04c1d52 commit ad5b869
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ platform=$1
fqbn=$2
urls=https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json

sudo apt-get update
curl -fsSL https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz | tar Jxf -
sudo apt-get update && sudo apt-get install wget unzip
wget -O/tmp/ide.zip https://downloads.arduino.cc/arduino-ide/arduino-ide_2.0.0_Linux_64bit.zip
unzip /tmp/ide.zip
mkdir ~/bin
ln -s ~/arduino*/arduino ~/bin/arduino
ln -s ~/arduino*/arduino-ide ~/bin/arduino
PATH=~/bin:$PATH curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/bin sh
mkdir -p ~/.arduino15/packages
PATH=~/bin:$PATH arduino-cli config init
Expand Down

0 comments on commit ad5b869

Please sign in to comment.