2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
IndicatorLights< N > Class Template Reference

#include <IndicatorLights.h>

Public Member Functions

 IndicatorLights ()=delete
 
 IndicatorLights (LED(&&lights)[N], size_t maxIlluminated=N)
 
void Initialize ()
 
void Update ()
 
void On (size_t idx)
 
void Off (size_t idx)
 
void Set (size_t idx, bool val)
 
LED::LEDPattern GetPattern (size_t idx) const
 
void SetPattern (size_t idx, LED::LEDPattern newPattern)
 
size_t GetNumLights () const
 
bool GetIlluminated (size_t idx) const
 

Private Attributes

LED m_lights [N]
 
bool m_initialized
 
const size_t m_numLEDs
 
const size_t m_maxIlluminated
 
size_t m_numIlluminated
 

Constructor & Destructor Documentation

◆ IndicatorLights() [1/2]

template<size_t N>
IndicatorLights< N >::IndicatorLights ( )
delete

◆ IndicatorLights() [2/2]

template<size_t N>
IndicatorLights< N >::IndicatorLights ( LED(&&)  lights[N],
size_t  maxIlluminated = N 
)
inlineexplicit

Member Function Documentation

◆ GetIlluminated()

template<size_t N>
bool IndicatorLights< N >::GetIlluminated ( size_t  idx) const
inline

◆ GetNumLights()

template<size_t N>
size_t IndicatorLights< N >::GetNumLights ( ) const
inline

◆ GetPattern()

template<size_t N>
LED::LEDPattern IndicatorLights< N >::GetPattern ( size_t  idx) const
inline

◆ Initialize()

template<size_t N>
void IndicatorLights< N >::Initialize ( )
inline

◆ Off()

template<size_t N>
void IndicatorLights< N >::Off ( size_t  idx)
inline

◆ On()

template<size_t N>
void IndicatorLights< N >::On ( size_t  idx)
inline

◆ Set()

template<size_t N>
void IndicatorLights< N >::Set ( size_t  idx,
bool  val 
)
inline

◆ SetPattern()

template<size_t N>
void IndicatorLights< N >::SetPattern ( size_t  idx,
LED::LEDPattern  newPattern 
)
inline

◆ Update()

template<size_t N>
void IndicatorLights< N >::Update ( )
inline

Member Data Documentation

◆ m_initialized

template<size_t N>
bool IndicatorLights< N >::m_initialized
private

◆ m_lights

template<size_t N>
LED IndicatorLights< N >::m_lights[N]
private

◆ m_maxIlluminated

template<size_t N>
const size_t IndicatorLights< N >::m_maxIlluminated
private

◆ m_numIlluminated

template<size_t N>
size_t IndicatorLights< N >::m_numIlluminated
private

◆ m_numLEDs

template<size_t N>
const size_t IndicatorLights< N >::m_numLEDs
private

The documentation for this class was generated from the following file: