remove extra spaces at end of line
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 24 Jul 2023 09:37:57 +0000 (11:37 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 24 Jul 2023 09:37:57 +0000 (11:37 +0200)
1/gumb.py

index 41dfd56..f1e3cd7 100755 (executable)
--- a/1/gumb.py
+++ b/1/gumb.py
@@ -19,7 +19,7 @@ ser.isOpen()
 
 def main():
 
-    # tell the GPIO module that we want to use the 
+    # tell the GPIO module that we want to use the
     # chip's pin numbering scheme
     GPIO.setmode(GPIO.BCM)
     GPIO.setup(26,GPIO.IN, pull_up_down=GPIO.PUD_UP)
@@ -46,34 +46,34 @@ def main():
                 dobar = False
                 trenutni=1
              while dobar!=True:
-                print "poslao na matricu"             
-#                time.sleep(1)                
+                print "poslao na matricu"
+#                time.sleep(1)
                 ON = "\x14\x82\x80\x81"
                 ser.write(ON)
 #                dobar=True
 #                time.sleep(0.01)
                 inp = ser.read(size=4)
-                print inp.encode("hex")                
+                print inp.encode("hex")
                 if inp.encode("hex") == "54828081":
-                    dobar=True                
+                    dobar=True
 
              print("play", "dobar=", dobar, "trenutni=",trenutni)
              pygame.mixer.music.play()
              while pygame.mixer.music.get_busy() == True:
-                 continue             
+                 continue
         else:
              #print "button true"
              if trenutni==1:
                 dobar = False
                 trenutni=2
              while dobar!=True:
-                print "poslao na matricu"             
+                print "poslao na matricu"
                 ON = "\x14\x81\x80\x81"
                 time.sleep(1)
                 ser.write(ON)
 #                time.sleep(0.01)
                 inp = ser.read(size=4)
-                print inp.encode("hex")                
+                print inp.encode("hex")
                 if inp.encode("hex") == "54818081":
                     dobar=True