Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
LedCOM Class Reference

#include <ledcom.h>

List of all members.

Public Member Functions

void clear ()
void connect (const std::string, const unsigned long)
void flush ()
void setHSV (const uint8_t, float, float, float)
void setLEDCount (const uint8_t)
void setRGB (const uint8_t, const uint8_t, const uint8_t, const uint8_t)

Private Member Functions

void write (const uint8_t[], uint32_t)

Private Attributes

serial::Serialserial_conn

Static Private Attributes

static const uint8_t CLEAR_MSG [1] = {'c'}
static const uint8_t FLUSH_MSG [1] = {'f'}

Detailed Description

Definition at line 10 of file ledcom.h.


Member Function Documentation

void LedCOM::clear ( )

Definition at line 56 of file ledcom.h.

void LedCOM::connect ( const std::string  port,
const unsigned long  baud 
)

Definition at line 34 of file ledcom.h.

void LedCOM::flush ( )

Definition at line 58 of file ledcom.h.

void LedCOM::setHSV ( const uint8_t  index,
float  h,
float  s,
float  v 
)

Definition at line 43 of file ledcom.h.

void LedCOM::setLEDCount ( const uint8_t  led_count)

Definition at line 60 of file ledcom.h.

void LedCOM::setRGB ( const uint8_t  index,
const uint8_t  r,
const uint8_t  g,
const uint8_t  b 
)

Definition at line 38 of file ledcom.h.

void LedCOM::write ( const uint8_t  data[],
uint32_t  data_size 
) [private]

Definition at line 29 of file ledcom.h.


Member Data Documentation

const uint8_t LedCOM::CLEAR_MSG = {'c'} [static, private]

Definition at line 12 of file ledcom.h.

const uint8_t LedCOM::FLUSH_MSG = {'f'} [static, private]

Definition at line 13 of file ledcom.h.

Definition at line 14 of file ledcom.h.


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


segbot_led
Author(s): Pato Lankenau , Rolando Fernandez
autogenerated on Thu Jun 6 2019 21:37:07