libNeon
Loading...
Searching...
No Matches
neo::led< Channels > Class Template Reference

#include <led.hpp>

Inheritance diagram for neo::led< Channels >:
Collaboration diagram for neo::led< Channels >:

Public Member Functions

 led ()=default
 
 led (rgb c, gamma_table const *table)
 
template<led_channel Channel>
void set (std::uint8_t v)
 
void set (led_channel chn, std::uint8_t v)
 
template<led_channel Channel>
std::uint8_t get () const
 
std::uint8_t get (led_channel chn) const
 
void set_color (rgb c, gamma_table const *table)
 
rgb get_color (gamma_table const *table) const
 

Additional Inherited Members

- Private Attributes inherited from neo::channel_storage< Channel >
std::uint8_t value = 0
 

Constructor & Destructor Documentation

◆ led() [1/2]

template<led_channel... Channels>
neo::led< Channels >::led ( )
default

◆ led() [2/2]

template<led_channel... Channels>
neo::led< Channels >::led ( rgb  c,
gamma_table const *  table 
)
inline

Member Function Documentation

◆ get() [1/2]

template<led_channel... Channels>
template<led_channel Channel>
std::uint8_t neo::led< Channels >::get
inline

◆ get() [2/2]

template<led_channel... Channels>
std::uint8_t neo::led< Channels >::get ( led_channel  chn) const
inline

◆ get_color()

template<led_channel... Channels>
rgb neo::led< Channels >::get_color ( gamma_table const *  table) const
Note
Very slow because it does inverse gamma table lookup. Also not guaranteed to invert set_color, because a discretized gamma function is not bijective.

◆ set() [1/2]

template<led_channel... Channels>
void neo::led< Channels >::set ( led_channel  chn,
std::uint8_t  v 
)

◆ set() [2/2]

template<led_channel... Channels>
template<led_channel Channel>
void neo::led< Channels >::set ( std::uint8_t  v)

◆ set_color()

template<led_channel... Channels>
void neo::led< Channels >::set_color ( rgb  c,
gamma_table const *  table 
)

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