HitLib 1.5.0
VEX V5 LED animation library for PROS
Loading...
Searching...
No Matches
hitlib::platform::AdiLed Class Reference

A WS2812B strip on one ADI port, either the brain's own or an ADI expander's. More...

#include <platform.hpp>

Public Member Functions

 AdiLed (uint8_t smartPort, uint8_t adiPort, uint8_t length)
 ~AdiLed ()
 AdiLed (const AdiLed &)=delete
AdiLed & operator= (const AdiLed &)=delete
void write (const uint32_t *pixels, uint8_t count)
 Send count 0xRRGGBB colors to the strip, starting at LED 0.

Detailed Description

A WS2812B strip on one ADI port, either the brain's own or an ADI expander's.

Constructor & Destructor Documentation

◆ AdiLed() [1/2]

hitlib::platform::AdiLed::AdiLed ( uint8_t smartPort,
uint8_t adiPort,
uint8_t length )
Parameters
smartPortSmart Port of the ADI expander (1-21), or 0 for the brain's built-in ADI ports.
adiPortADI port (1-8).
lengthNumber of LEDs.

◆ ~AdiLed()

hitlib::platform::AdiLed::~AdiLed ( )

◆ AdiLed() [2/2]

hitlib::platform::AdiLed::AdiLed ( const AdiLed & )
delete

Member Function Documentation

◆ operator=()

AdiLed & hitlib::platform::AdiLed::operator= ( const AdiLed & )
delete

◆ write()

void hitlib::platform::AdiLed::write ( const uint32_t * pixels,
uint8_t count )

Send count 0xRRGGBB colors to the strip, starting at LED 0.