All done before my 14th birthday, and all written in entirety by me.
After you understand the C of courseA good testimony to skill, but when I can do the same thing in a much better language much more efficiently (in terms of lines of code). Why bother writing the C
And here is the python
Code:
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.OUT)
state = True
while True:
GPIO.output(4,True)
time.sleep(1)
GPIO.output(4,False)
time.sleep(1)