BradleyA / pi-display

Displays are Pimoroni Blinkt, Scroll-pHAT, and Scroll-pHAT-HD connected to Raspberry Pi 3 using Triple GPIO Multiplexing Expansion Board
MIT License
3 stars 0 forks source link

display-led.py determine script run time to determine sleep time before exit #50

Closed BradleyA closed 5 years ago

BradleyA commented 5 years ago

display-led.py determine script run time to determine sleep time before exit

Need to write this in python

#  Set START_TIME
START_TIME=`date +%Y%m%d%H%M%S
#  Set end time
END_TIME=`date +%Y%m%d%H%M%S`
#  calucate run time
RUN_TIME=$(expr ${END_TIME} - ${START_TIME})
echo "${START_TIME} ${END_TIME}"
expr  15 - (${END_TIME} - ${START_TIME})