#!/usr/bin/env python

import RPi.GPIO as GPIO
import time
 
def blink(times, delay):
    GPIO.setmode(GPIO.BOARD)
    GPIO.setup(11, GPIO.OUT)
 
    while times>0:
        if 0==times%2:
            GPIO.output(11, GPIO.HIGH) #or output(11, GPIO.True)
        else:
            GPIO.output(11, GPIO.LOW)
        time.sleep(delay)
        times-=1
    return
 
 
if __name__ == '__main__':
    blink(2000000, 0.4)
