functions.sh 260 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. ptt_on () {
  3. if [[ $PTTLOGIC == 0 ]];
  4. then
  5. raspi-gpio set $GPIO_PTT dl
  6. else
  7. raspi-gpio set $GPIO_PTT dh
  8. fi
  9. }
  10. ptt_off () {
  11. if [[ $PTTLOGIC == 0 ]];
  12. then
  13. raspi-gpio set $GPIO_PTT dh
  14. else
  15. raspi-gpio set $GPIO_PTT dl
  16. fi
  17. }