I use a function to clean out things.
Thank you to everybody
Code:
def My_Exit(): Pin(27, mode=Pin.OUT, value=0)# Pin(15, Pin.IN, value=0)# print("Stopping LED") Pin(27, 0)# print("Stopping LCD")# lcd.clear()# print("Stopping PWM")# pwm.deinit() print("") print(" MY-EXIT-1 - RUNNING My_Exit") print(" MY-EXIT-2 - CALLING sys.exit()") print("") sys.exit()
Statistics: Posted by jcd95 — Thu Apr 10, 2025 3:40 pm