HitLib 1.5.0
VEX V5 LED animation library for PROS
Loading...
Searching...
No Matches
hitlib::LedStrand::ExpanderPort Struct Reference

A port on an ADI expander: the Smart Port the expander is plugged into, and the ADI port on it. More...

#include <led_strand.hpp>

Public Attributes

uint8_t smartPort
 Smart Port the expander is connected to (1–21).
uint8_t adiPort
 ADI port on the expander (1–8).

Detailed Description

A port on an ADI expander: the Smart Port the expander is plugged into, and the ADI port on it.

Written as a braced pair, the same way PROS writes its own expander ports:

hitlib::LedStrand strand({2, 1}, 63); // expander on Smart Port 2, ADI port A
Driver for a single WS2812B-compatible LED strip on a VEX ADI port.
Definition led_strand.hpp:53

Member Data Documentation

◆ smartPort

uint8_t hitlib::LedStrand::ExpanderPort::smartPort

Smart Port the expander is connected to (1–21).

◆ adiPort

uint8_t hitlib::LedStrand::ExpanderPort::adiPort

ADI port on the expander (1–8).