
import time
import RPi.GPIO as GPIO
import time

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(17,GPIO.OUT)
GPIO.setup(27,GPIO.OUT)
GPIO.setup(12,GPIO.OUT)







def blink2():
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)



    
def blink():
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)

def blink3():
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)

def blink4():
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)


def blink5():
    
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)    
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)    
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)    
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)

    
def allblinks():
    blink()
    blink()
    blink()
    blink()
    blink()
  
    blink2()
    blink2()
    blink2()
    blink2()
    blink2()
      
    blink3()
    blink3()
    blink3()
    blink3()
    blink3()

    blink4()
    blink4()
    blink4()
    blink4()
    blink4()
   
    blink5()
    blink5()
    blink5()
    blink5()
    blink5()
    


    


    


import time
import RPi.GPIO as GPIO
import time

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(17,GPIO.OUT)
GPIO.setup(27,GPIO.OUT)
GPIO.setup(12,GPIO.OUT)







def blink2():
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    time.sleep(0.03)
    GPIO.output(17,0)
    GPIO.output(27,0)
    time.sleep(0.03)



    
def blink():
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)

def blink3():
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)

def blink4():
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)
    GPIO.output(17,1)
    GPIO.output(27,1)
    GPIO.output(12,1)
    time.sleep(0.03)    
    GPIO.output(17,0)
    GPIO.output(27,0)
    GPIO.output(12,0)
    time.sleep(0.03)


def blink5():
    
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)    
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)    
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(27,1)
    time.sleep(0.05)
    GPIO.output(27,0)
    time.sleep(0.05)
    GPIO.output(12,1)
    time.sleep(0.05)    
    GPIO.output(12,0)
    time.sleep(0.05)
    GPIO.output(17,1)
    time.sleep(0.05)
    GPIO.output(17,0)
    time.sleep(0.05)

    
def allblinks():
    blink()
    blink()
    blink()
    blink()
    blink()
  
    blink2()
    blink2()
    blink2()
    blink2()
    blink2()
      
    blink3()
    blink3()
    blink3()
    blink3()
    blink3()

    blink4()
    blink4()
    blink4()
    blink4()
    blink4()
   
    blink5()
    blink5()
    blink5()
    blink5()
    blink5()
    


    


    
