S&B Volcano vaporizer remote control with Pi Pico W
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

copy.sh 797B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. if [ $# -ne 0 ] ; then
  3. cat << EOF | rshell
  4. cp poll.py /pyboard
  5. cp scan.py /pyboard
  6. cp lcd.py /pyboard
  7. cp workflows.py /pyboard
  8. cp states.py /pyboard
  9. cp state_scan.py /pyboard
  10. cp state_connect.py /pyboard
  11. cp state_select.py /pyboard
  12. cp state_heat.py /pyboard
  13. cp state_wait_temp.py /pyboard
  14. cp state_wait_time.py /pyboard
  15. cp state_pump.py /pyboard
  16. cp state_notify.py /pyboard
  17. cp $1 /pyboard/main.py
  18. EOF
  19. else
  20. cat << EOF | rshell
  21. cp poll.py /pyboard
  22. cp scan.py /pyboard
  23. cp lcd.py /pyboard
  24. cp workflows.py /pyboard
  25. cp states.py /pyboard
  26. cp state_scan.py /pyboard
  27. cp state_connect.py /pyboard
  28. cp state_select.py /pyboard
  29. cp state_heat.py /pyboard
  30. cp state_wait_temp.py /pyboard
  31. cp state_wait_time.py /pyboard
  32. cp state_pump.py /pyboard
  33. cp state_notify.py /pyboard
  34. rm /pyboard/main.py
  35. EOF
  36. fi