From 712efa85c7a6aedbcce991e11fa4e101fa8115c1 Mon Sep 17 00:00:00 2001 From: talksik Date: Thu, 27 Apr 2023 17:30:14 -0700 Subject: [PATCH] fixing bug --- basic_text_to_speech/talk.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/basic_text_to_speech/talk.py b/basic_text_to_speech/talk.py index 99c190c..ebd9779 100644 --- a/basic_text_to_speech/talk.py +++ b/basic_text_to_speech/talk.py @@ -10,14 +10,6 @@ BUTTON = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(BUTTON, GPIO.IN) -while True: - state = GPIO.input(BUTTON) - if state: - print("off") - else: - print("on") - time.sleep(1) - def robot(text): print("executing command") @@ -29,7 +21,7 @@ def sayScript(): print("initializing") robot("hey Heran?") robot("Based on your age, health, and habits, you have 10950 days left") - robot("Make sure you chant hare krishna more") + robot("Make sure you chant more") time.sleep(5) robot("hey Kam?") @@ -51,7 +43,6 @@ if __name__ == '__main__': print("on") sayScript() - time.sleep(1) except KeyboardInterrupt: break