Seeed Grove ++  v0.0.1-2019
Linux C++ Library For Seeed Grove Devices
SG::LEDBar::Data Struct Referencefinal

The command is 16 bits wide, and the colour data is 12 x 16 bits. More...

#include <sg_104020006_LEDBar.hpp>

Public Member Functions

 Data (void)
 

Public Attributes

uint16_t command
 
uint16_t colour [12]
 

Detailed Description

The command is 16 bits wide, and the colour data is 12 x 16 bits.

This makes a total of 208 bits, or 26 bytes. See pages 12-14 of the datasheet for details. By default, only the lower 8 bits of each colour is used, and the upper 8 bits remain at zero.

Note
The LED Bar only uses the first 10 colours of the 12 possible colours supported by the MY9221. The upper two sets of 16-bit colour values (colour[10] and colour[11]) are ignored.

The colours are assigned as follows:

  • colour[0] through colour[7] are green
  • colour[8] is yellow
  • colour[9] is red

Constructor & Destructor Documentation

SG::LEDBar::Data::Data ( void  )
inline

Member Data Documentation

uint16_t SG::LEDBar::Data::colour[12]
uint16_t SG::LEDBar::Data::command

Referenced by SG::LEDBar::send_data().


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