Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Channel remains in use #6

Open
anpap opened this issue Apr 11, 2019 · 1 comment
Open

Channel remains in use #6

anpap opened this issue Apr 11, 2019 · 1 comment

Comments

@anpap
Copy link

anpap commented Apr 11, 2019

After using a python module with OPi GPIO (in this case risingfalling.py) and when the program is terminated using Ctrl-C, I get the following error when I try to run it again:

user@pizero2:~/example$ sudo python risingfalling.py
Traceback (most recent call last):
File "risingfalling.py", line 14, in
GPIO.setup(23, GPIO.IN) # set GPIO25 as input (button)
ValueError: This channel is already in use by system as SEE_MANUAL.

@alex-morgun
Copy link

if you don't do GPIO.cleanup() you don't free the pin and you will get wrnings
Use this example, it is ctrl+c friendly

https://github.com/Jeremie-C/OrangePi.GPIO/blob/master/example/blink_led.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants