Connection
10mm LED, 1K Ω Resistor, Breadboard with connection cables
P8_2=>GND
P8_10=>LED OUT
Code
#!/usr/bin/python
import Adafruit_BBIO.GPIO as GPIO
import time
GPIO.setup("P8_10", GPIO.OUT)
while True:
GPIO.output("P8_10", GPIO.HIGH)
time.sleep(0.5)
GPIO.output("P8_10", GPIO.LOW)
time.sleep(0.5)