To collect general GPIO components used with Raspberry Pi created by Thai community.
from gadgets.led import LED import timel = LED(7) #connect anode to 7th pin on Raspberry Pi l.on() # turn led on time.sleep(2) l.off() # turn led off time.sleep(2) l.blink(3,1) # blink led 3 times with 1 second interval. l.cleanup()