c7seg2 2.1.0.0
|
7-SEG 2 Click is a compact add-on board that represents an easy solution for adding a numeric or hexadecimal display to your application. This board features the LDT-M2804RI, a three-digit seven-segment display from Lumex. The display has a 0.28” height, red LED segments, gray faces, and white diffused segments. All three digits come with a following dot point that can be used as a decimal point in displaying the number values.
We provide a library for the 7-SEG 2 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 7-SEG 2 Click driver.
c7seg2_cfg_setup
Config Object Initialization function. c7seg2_init
Initialization function. c7seg2_default_cfg
Click Default Configuration function. c7seg2_set_segments_current
This function is used to set the current value of the segment's leds. c7seg2_write_segment
This function is used to write a number [0..9] to a selected segment [0..2] with or w/o a decimal pointer. c7seg2_write_number
This function is used to write a number [0..999] to a selected segment [0..2] with or w/o a decimal pointer. The example demonstrates the use of the 7-SEG 2 click board by displaying a counter number [0.00-9.99] which is incremented by 0.01 at a desired rate.
The demo application is composed of two sections :
Initializes the driver and performs default configuration, sets the device in output enabled mode and checks communication by reading device ID.
Writes a counter number [0.00-9.99] to the display as frequently as possible. The displayed counter value is incremented by 0.01 at a rate defined with the C7SEG2_NUM_COUNTER_RATE macro.
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. UART terminal is available in all MikroElektronika compilers.