projects
/
veternica
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97b23ec
)
vcgencmd measure_temp ; uptime every 60 s
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 2 Dec 2023 15:40:04 +0000
(16:40 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 3 Dec 2023 09:26:16 +0000
(10:26 +0100)
wait.py
patch
|
blob
|
history
diff --git
a/wait.py
b/wait.py
index
311f37e
..
ca12ee0
100755
(executable)
--- a/
wait.py
+++ b/
wait.py
@@
-5,6
+5,7
@@
from signal import pause
import pygame
import glob
import time
+import os
GPIO.setmode(GPIO.BCM)
@@
-24,7
+25,10
@@
GPIO.add_event_detect(26, GPIO.FALLING, callback=play, bouncetime=300)
try:
play(42)
- pause()
+ while(1):
+ os.system('vcgencmd measure_temp ; uptime')
+ time.sleep(60)
+ #pause()
except KeyboardInterrupt:
GPIO.cleanup()