update
This commit is contained in:
@@ -16,7 +16,28 @@ echo "NebuleAir pro started at $(date)"
|
|||||||
chmod -R 777 /var/www/nebuleair_pro_4g/
|
chmod -R 777 /var/www/nebuleair_pro_4g/
|
||||||
|
|
||||||
# Blink GPIO 23 and 24 five times (starts OFF, stays OFF at end)
|
# Blink GPIO 23 and 24 five times (starts OFF, stays OFF at end)
|
||||||
gpioset -c gpiochip0 -t 1s,1s,1s,1s,1s,1s,1s,1s,1s,1s,0 23=0 24=0
|
#gpioset -c gpiochip0 -t 1s,1s,1s,1s,1s,1s,1s,1s,1s,1s,0 23=0 24=0
|
||||||
|
|
||||||
|
# Blink GPIO 23 and 24 five times (starts OFF, stays OFF at end)
|
||||||
|
python3 << 'EOF'
|
||||||
|
import RPi.GPIO as GPIO
|
||||||
|
import time
|
||||||
|
|
||||||
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
GPIO.setwarnings(False)
|
||||||
|
GPIO.setup(23, GPIO.OUT)
|
||||||
|
GPIO.setup(24, GPIO.OUT)
|
||||||
|
|
||||||
|
for _ in range(5):
|
||||||
|
GPIO.output(23, GPIO.HIGH)
|
||||||
|
GPIO.output(24, GPIO.HIGH)
|
||||||
|
time.sleep(1)
|
||||||
|
GPIO.output(23, GPIO.LOW)
|
||||||
|
GPIO.output(24, GPIO.LOW)
|
||||||
|
time.sleep(1)
|
||||||
|
|
||||||
|
GPIO.cleanup()
|
||||||
|
EOF
|
||||||
|
|
||||||
echo "getting RPI serial number"
|
echo "getting RPI serial number"
|
||||||
# Get the last 8 characters of the serial number and write to text file
|
# Get the last 8 characters of the serial number and write to text file
|
||||||
|
|||||||
Reference in New Issue
Block a user