Advertisement
metalx1000

IR Remote setip for Arduino

Jun 25th, 2016
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #!/bin/bash
  2. #IR Remote setip for arduino
  3. #Clear Arduino
  4. rm ~/Arduino ~/.arduino15 ~/Downloads/arduino-1.6.9 -fr
  5. cd ~/Downloads && tar xf arduinoIDE.tar.xz && cd arduino-1.6.9
  6.  
  7. #get arduino
  8. cd ~/Downloads
  9. wget -c "https://downloads.arduino.cc/arduino-1.6.9-linux64.tar.xz" -O arduinoIDE.tar.xz
  10. tar xf arduinoIDE.tar.xz
  11.  
  12. #get IR libraries
  13. wget -c "https://github.com/z3t0/Arduino-IRremote/archive/master.zip" -O IRlib.zip
  14.  
  15. #clear default ir libraries because of conflicts
  16. rm -fr ~/Downloads/arduino-1.6.9/libraries/RobotIRremote
  17.  
  18. #load new libraries
  19. unzip IRlib.zip -d ~/Downloads/arduino-1.6.9/libraries/
  20.  
  21. echo "To read serial output"
  22. echo "stty raw -echo < /dev/ttyUSB0; cat -vte /dev/ttyUSB0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement