Browse Source

organise scripts

Pierre Bourdin 1 year ago
parent
commit
b91d3d7167
3 changed files with 0 additions and 36 deletions
  1. 0 7
      1_capture.sh
  2. 0 6
      2_convert.sh
  3. 0 23
      3_transmit.sh

+ 0 - 7
1_capture.sh

@@ -1,7 +0,0 @@
-#!/bin/bash
-
-DATE=$(date +%y%m%d_%H%M%S)
-sudo raspistill -o /ramfs/$DATE.jpg
-echo "Picz $DATE.jpg saved in RAM"
-cp /ramfs/$DATE.jpg ~/_Pictures
-echo "Picz $DATE.jpg saved to SDCARD"

+ 0 - 6
2_convert.sh

@@ -1,6 +0,0 @@
-#!/bin/bash
-
-cd /ramfs
-FILE=$(find ./ -type f -name *.jpg)
-convert $FILE -resize 640x480^ lit-$FILE
-

+ 0 - 23
3_transmit.sh

@@ -1,23 +0,0 @@
-#!/bin/bash
-
-
-trap ctrl_c INT
-
-function ctrl_c() {
-	echo "Ctrl + C happened"
-	raspi-gpio set 4 dh
-}
-
-
-# Setup the GPIO4 as output for Tx
-raspi-gpio set 4 op && raspi-gpio set 4 dh
-raspi-gpio set 4 dl
-sleep 1
-
-IMG=$(cd /ramfs; find ./ -type f -name *.jpg -exec readlink -f {} \;)
-
-
-cd ~/trxamadrmv3_7/linux/
-./drm $IMG
-
-raspi-gpio set 4 dh