matrixrgb
2.0.0.0
|
Matrix RGB click is a mikroBUS™ add-on board powered by a 32-bit FT900 MCU designed specifically for powering 16x32 RGB LED matrices.
We provide a library for the MatrixRGB Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for MatrixRGB Click driver.
void matrixrgb_cfg_setup ( matrixrgb_cfg_t *cfg );
MATRIXRGB_RETVAL matrixrgb_init ( matrixrgb_t *ctx, matrixrgb_cfg_t *cfg );
void matrixrgb_pattern_settings ( matrixrgb_t *ctx, uint8_t pattern_type, uint16_t pattern_delay_us );
void matrixrgb_set_power ( matrixrgb_t *ctx, uint8_t power_state );
void matrixrgb_set_brightness ( matrixrgb_t *ctx, uint8_t brightness );
uint8_t matrixrgb_write_pixel ( matrixrgb_t *ctx, uint16_t x, uint16_t y, uint16_t color );
This application is used for powering 16x32 RGB LED matrices.
The demo application is composed of two sections :
Initializes driver, reset device and initializes firmware depend on pattern used alongside with fonts
Test of panel brightnes, draws red cross on the panel using pixel write function, writes text on panel using write text function and finaly displays image on the panel.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.