3_transmit.sh 339 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. trap ctrl_c INT
  3. function ctrl_c() {
  4. echo "Ctrl + C happened"
  5. raspi-gpio set 4 dh
  6. }
  7. # Setup the GPIO4 as output for Tx
  8. raspi-gpio set 4 op && raspi-gpio set 4 dh
  9. raspi-gpio set 4 dl
  10. sleep 1
  11. IMG=$(cd /ramfs; find ./ -type f -name *.jpg -exec readlink -f {} \;)
  12. cd ~/trxamadrmv3_7/linux/
  13. ./drm $IMG
  14. raspi-gpio set 4 dh