From Led Acma, 8 Months ago, written in Python.
Embed
  1. from gpiozero import LED
  2. from time import sleep
  3. led = LED(2)
  4. # Sonsuz dongu
  5. while True:
  6.  #LEDi yak
  7.  led.on()
  8.  # Bir saniye bekle
  9.  sleep(1)
  10.  # LEDi sondur
  11.  led.off()
  12.  # Bir saniye bekle
  13.  sleep(1)