bargraph4 2.0.0.0
|
BarGraph 4 Click is a compact add-on board that contains four green four-segment LED bar graph displays. This board features the TLC59283, a 16-channel, constant-current sink light-emitting diode (LED) driver from Texas Instruments.
We provide a library for the BarGraph4 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 from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for BarGraph4 Click driver.
bargraph4_cfg_setup
Config Object Initialization function. bargraph4_init
Initialization function. bargraph4_enable_output
This function enables all outputs. bargraph4_set_output
This function sets all outputs to desired value by using SPI serial interface. bargraph4_set_channel_level
This function sets the level of a desired bar graph channel. This example demonstrates the use of BarGraph 4 click board.
The demo application is composed of two sections :
Initializes the driver and enables output.
Changes the level of all bar graph channels every second. The channels level will be logged on the USB UART.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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.