parent
dbddbd36c5
commit
aa71e1bb48
|
@ -155,7 +155,7 @@ class PowerButton(Button):
|
||||||
self.timestamp = time.time()
|
self.timestamp = time.time()
|
||||||
|
|
||||||
if self.count >= 5:
|
if self.count >= 5:
|
||||||
print('POWEROFF')
|
os.system('sudo poweroff')
|
||||||
|
|
||||||
class CaptureButton(Button):
|
class CaptureButton(Button):
|
||||||
countdown = 3
|
countdown = 3
|
||||||
|
|
Loading…
Reference in New Issue