Merge branch 'main' of https://git.jerick.xyz/jerick/homeassistantPi
This commit is contained in:
@@ -26,7 +26,7 @@ for proc in psutil.process_iter():
|
|||||||
#12 is the pin number
|
#12 is the pin number
|
||||||
pir_sensor = 12
|
pir_sensor = 12
|
||||||
|
|
||||||
GPIO.setmode(GPIO.BMC)
|
GPIO.setmode(GPIO.BCM)
|
||||||
|
|
||||||
GPIO.setup(pir_sensor, GPIO.IN)
|
GPIO.setup(pir_sensor, GPIO.IN)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user