引领#
介绍#
LED 指示灯 允许 V5 主机通过 3 线端口打开或关闭连接的发光二极管 (LED)。

This page uses led_a as the example LED Indicator name. Replace it with your own configured name as needed.
以下是可用方法列表:
构造函数 – 手动初始化 LED 指示灯。
Led– Create an LED Indicator.
在#
on turns the specified LED Indicator on.
Usage:
led_a.on()
参数 |
描述 |
|---|---|
此方法没有参数。 |
离开#
off turns the specified LED Indicator off.
Usage:
led_a.off()
参数 |
描述 |
|---|---|
此方法没有参数。 |
构造函数#
Constructors are used to manually create Led objects, which are necessary for configuring an LED Indicator outside of VEXcode.
Led#
Led creates an LED Indicator.
Usage:
Led(port)
范围 |
描述 |
|---|---|
|
The 3-Wire Port that the LED Indicator is connected to:
|
# Create an LED Indicator in Port A
led_a = Led(brain.three_wire_port.a)