Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #IR Remote setip for arduino
- #Clear Arduino
- rm ~/Arduino ~/.arduino15 ~/Downloads/arduino-1.6.9 -fr
- cd ~/Downloads && tar xf arduinoIDE.tar.xz && cd arduino-1.6.9
- #get arduino
- cd ~/Downloads
- wget -c "https://downloads.arduino.cc/arduino-1.6.9-linux64.tar.xz" -O arduinoIDE.tar.xz
- tar xf arduinoIDE.tar.xz
- #get IR libraries
- wget -c "https://github.com/z3t0/Arduino-IRremote/archive/master.zip" -O IRlib.zip
- #clear default ir libraries because of conflicts
- rm -fr ~/Downloads/arduino-1.6.9/libraries/RobotIRremote
- #load new libraries
- unzip IRlib.zip -d ~/Downloads/arduino-1.6.9/libraries/
- echo "To read serial output"
- echo "stty raw -echo < /dev/ttyUSB0; cat -vte /dev/ttyUSB0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement