From 56147c03d9016ba578767eef995d38776fa592ce Mon Sep 17 00:00:00 2001 From: Suhayl <838119509@qq.com> Date: Thu, 28 May 2020 16:46:00 +0800 Subject: [PATCH] update. add GPIO.cleanup(). --- Code/Python_Code/08.1.1_Softlight/Softlight.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Code/Python_Code/08.1.1_Softlight/Softlight.py b/Code/Python_Code/08.1.1_Softlight/Softlight.py index 568a152..2a753bf 100644 --- a/Code/Python_Code/08.1.1_Softlight/Softlight.py +++ b/Code/Python_Code/08.1.1_Softlight/Softlight.py @@ -38,6 +38,7 @@ def loop(): time.sleep(0.03) def destroy(): + GPIO.cleanup() adc.close() if __name__ == '__main__': # Program entrance