summarylogtreecommitdiffstats
path: root/atomicpi-hold-mic
diff options
context:
space:
mode:
Diffstat (limited to 'atomicpi-hold-mic')
-rwxr-xr-xatomicpi-hold-mic18
1 files changed, 0 insertions, 18 deletions
diff --git a/atomicpi-hold-mic b/atomicpi-hold-mic
deleted file mode 100755
index 56c747934712..000000000000
--- a/atomicpi-hold-mic
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-. /usr/lib/atomicpi.sh
-
-if [ "$1" = "--cleanup" ]; then
- atomicpi_gpio_hardware && gpioset --mode=time --us=200000 $ATOMICPICHIP_AU_MIC_SEL=1
-fi
-
-if [ -z "$1" ]; then
- # Hold AU_MIC_SEL low to enable recording from microphone
- if atomicpi_gpio_hardware; then
- exec gpioset --mode=signal $ATOMICPICHIP_AU_MIC_SEL=0
- else
- while true; do
- sleep 2147483647;
- done
- fi
-fi