#!/usr/bin/env python3

import Jetson.GPIO as GPIO
import time

led_pin = 12

print("Start led blinking example on pin: " + str(led_pin) + ".")

GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
GPIO.setup(led_pin, GPIO.OUT)

i = 0
while i < 10:
    GPIO.output(led_pin, GPIO.HIGH)
    time.sleep(1)
    GPIO.output(led_pin, GPIO.LOW)
    time.sleep(1)
    i = i + 1

print("End of led blinking example.")
