Button in use error

Hello I am using circuitpython on my WIO Terminal. When trying to run a secondary script from the main script, an error “SWITCH_DOWN in use” occurs. How can I reconnect a button in a secondary script?

Hi, can you tell me more details? For example, what did you do according to the routine, so that I can reproduce this error and help you solve it.

Thanks, I already figured it out. Using the deinit() command, you can disable connected buttons without causing an error.