add GPIO.cleanup().
This commit is contained in:
Suhayl
2020-05-28 16:46:00 +08:00
parent c4e7901ad7
commit 56147c03d9
@@ -38,6 +38,7 @@ def loop():
time.sleep(0.03)
def destroy():
GPIO.cleanup()
adc.close()
if __name__ == '__main__': # Program entrance