i tought its time for the real thing and wrote this code for python:
Code: Select all
import RPi.GPIO as GPIO import time def blink(pin): GPIO.output(pin,GPIO.HIGH) time.sleep(1) GPIO.output(pin,GPIO.LOW) time.sleep(1) return GPIO.setmode(GPIO.BOARD) GPIO.setup(11, GPIO.OUT) for i in range(0,3): blink(11) GPIO.cleanup()
i also tried the GPIO 10 it didn't work either i tried directly connecting it to the first pin (3.3v+) and it turned on ! why isn't it blinking?!!!