diff --git a/docs/Edge/Raspberry_Pi_Devices/reComputer_R1000/recomputer_r.md b/docs/Edge/Raspberry_Pi_Devices/reComputer_R1000/recomputer_r.md index a79fb1f06d97..7dd844075b5c 100644 --- a/docs/Edge/Raspberry_Pi_Devices/reComputer_R1000/recomputer_r.md +++ b/docs/Edge/Raspberry_Pi_Devices/reComputer_R1000/recomputer_r.md @@ -1478,7 +1478,7 @@ Another way to use this function is Initiate a shutdown when GPIO pin changes. T Use `/boot/overlays/README` as reference, then modify `/boot/config.txt`. ```bash -dtoverlay=gpio-shutdown, gpio_pin=GPIO25,active_low=1 +dtoverlay=gpio-shutdown,gpio_pin=25,active_low=1 ``` :::note @@ -1494,10 +1494,10 @@ import time,os num = 0 -GPIO.setmode(GPIO,BCM) +GPIO.setmode(GPIO.BCM) #set GPIO25 as input mode #add 500ms jitter time for software stabilization -GPIO.setup(25,GPIO.IN,pull_up_down = GPIO.PUD_DOWN) +GPIO.setup(25,GPIO.IN,pull_up_down = GPIO.PUD_UP) GPIO.add_event_detect(25,GPIO.FALLING, bouncetime = 500) while True: if GPIO.event_detected(25): @@ -1549,4 +1549,4 @@ Thank you for choosing our products! We are here to provide you with different s
\ No newline at end of file +