diff options
| author | Ingar <ingar@telenet.be> | 2022-08-25 00:42:19 +0200 |
|---|---|---|
| committer | Ingar <ingar@telenet.be> | 2022-08-25 00:42:19 +0200 |
| commit | fbacdc78311265078f0baf7c1f8ddee4ec75a5c0 (patch) | |
| tree | 9a3607879722a873ec68740a6aaf6be4f644d53c /buttonctl/buttonctl.py | |
| parent | c4193ba7e4fac1dfeae28e629f248ea97be43c15 (diff) | |
| parent | be644b94dc95c48608a5614a3de2f02d62321016 (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'buttonctl/buttonctl.py')
| -rw-r--r-- | buttonctl/buttonctl.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/buttonctl/buttonctl.py b/buttonctl/buttonctl.py deleted file mode 100644 index 26878f1..0000000 --- a/buttonctl/buttonctl.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/python - -import RPi.GPIO as GPIO -import subprocess - - -GPIO.setmode(GPIO.BCM) -GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) -GPIO.wait_for_edge(26, GPIO.FALLING) - -print ('button pressed') - -subprocess.call(['ledctl', 'boot'], shell=False) - -subprocess.call(['shutdown', '-h', 'now'], shell=False) - |
