28 #include <mraa/gpio.h>
30 #define MAX_BIT_PER_BLOCK 16
31 #define CMDMODE 0x0000
32 #define BIT_HIGH 0x00ff
33 #define BIT_LOW 0x0000
55 MY9221 (uint8_t di, uint8_t dcki);
68 mraa_result_t
setBarLevel (uint8_t level,
bool direction=
true);
78 mraa_result_t lockData ();
79 mraa_result_t send16bitBlock (
short data);
82 mraa_gpio_context m_clkPinCtx;
83 mraa_gpio_context m_dataPinCtx;
C++ API for MY9221 led bar module.
Definition: my9221.h:47
std::string name()
Definition: my9221.h:73
~MY9221()
Definition: my9221.cxx:63
MY9221(uint8_t di, uint8_t dcki)
Definition: my9221.cxx:33
mraa_result_t setBarLevel(uint8_t level, bool direction=true)
Definition: my9221.cxx:76