LED Loop Blink

# Module Imports

import LocoIOT

import time


# Class Instances Creation

loco_iot = LocoIOT.LocoIOT()

msg = LocoIOT.IOT_Codes()


# Initiate Connection to the Microcontroller

loco_iot.connect()


# Enable Digital Output Hardware Configuration

loco_iot.enable(msg.SUBTYPE_DO_1)


# Instruct the Microcontroller to Start Listening for Control/Request Messages

loco_iot.start()


#Create For statement

for i in range(0, 5,):

print (i)

loco_iot.setData(msg.SUBTYPE_DO_1, [1])

time.sleep(i)

loco_iot.setData(msg.SUBTYPE_DO_1, [0])

time.sleep(i)

# Close Connection to the Microcontroller

loco_iot.close()