IoT Drivers  v3.3.0 (S2022)
Engineering in Software Technology
Quick start guide for 7-segment Display Driver

This is the quick start guide for the 7 Segment Display Driver, with step-by-step instructions on how to configure and use the driver in a simple use case.

The use cases contain code fragments. The code fragments in the steps for setup can be copied into a custom initialization function, while the steps for usage can be copied into, e.g., the main application function.

7-segment Display Driver use cases

Initialise the driver

  1. The following must be added to the project:
    #include <display_7seg.h>
  2. Add to application initialization: Initialise the driver:
    // Here the call back function is not needed
    // Power up the display

Show numbers on the display

Note
The driver must be initialised Initialise the driver and powered up display_7seg_powerUp before the display can be used.
  1. Show Π with two decimals on the display.
    display_7seg_display(3.14159265359, 2);

Show HEX string on the display

Note
The driver must be initialised Initialise the driver and powered up display_7seg_powerUp before the display can be used.
  1. Show 01234ABCD on the display.
display_7seg.h
Driver to the 4-digits 7-segment display found on the VIA ARDUINO MEGA2560 Shield rev....
display_7seg_displayHex
void display_7seg_displayHex(char *hexString)
Display a HEX value on the 7-segment Display.
display_7seg_initialise
void display_7seg_initialise(void(*displayDoneCallBack)(void))
Initialise the 7-segment Display driver.
display_7seg_display
void display_7seg_display(float value, uint8_t no_of_decimals)
Display value on the 7-segment Display.
display_7seg_powerUp
void display_7seg_powerUp(void)
Power up the 7-segment display.