Table of Contents

7-segment LED Display

Related to: [HW] User Interface Module

This library is intended to use a 7-segment LED display on the HomeLab Digital i/o module board. Numbers from 0 to 9 can be displayed with the library.

Functions

Configures display driver control pins.

Displayes a digit on display. Parameters:

Example

Number 5 is showed on LED display.

#include <homelab/module/segment_display.h>
 
int main(void)
{
	// Display initialization.
	segment_display_init();
 
	// Digit displaying.
	segment_display_write(5);
}