Turn off the Python alarm when it rings

Asked 2 years ago, Updated 2 years ago, 14 views

If the alarm goes off while running another scenario, Let's continue with the scenario where we turned off the alarm I'm going to make a program I don't know what code to use I don't know what functions I should use to make it Please reply.<

python

2022-09-22 20:54

1 Answers

Utilization of functions is not a problem, but a little understanding of the mcu (cpu) or os of the equipment you want to run is required.

Interrupt knowledge is required. Are you trying to do it's for Windows

With Windows, you can simply use multi-thread or use Python's signal.

See the example below.

https://pymotw.com/3/signal/


2022-09-22 20:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.