Support and Documentation
Breadcrumbs

LED: IOType=9

LED, 2 Command Bytes: 

0

IOType=9

1

State

 

 

0 Response Bytes: 

 

 

This IOType simply turns the status LED on or off.

  • State: 1=On, 0=Off.

Example

Python
# LED Toggle

# specify whether the LED should be on or off by truth value
# 1 or True = On, 0 or False = Off

import u3
d = u3.U3()
d.debug = True
d.getFeedback(u3.LED(State = False))
# Sent:  [0x4, 0xf8, 0x2, 0x0, 0x9, 0x0, 0x0, 0x9, 0x0, 0x0]
# Response:  [0xfa, 0xf8, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]
# [None]
d.getFeedback(u3.LED(State = True))
# Sent:  [0x5, 0xf8, 0x2, 0x0, 0xa, 0x0, 0x0, 0x9, 0x1, 0x0]
# Response:  [0xfa, 0xf8, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]
# [None]