simple blinky – bbb
Connection 10mm LED, 1K Ω Resistor, Breadboard with connection cables P8_2=>GNDP8_10=>LED OUT Code #!/usr/bin/pythonimport Adafruit_BBIO.GPIO as GPIOimport timeGPIO.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)