16FXlib
7-segment display (seg.h)

Detailed Description

#include "seg.h"
Overview
Routines to show values in decimal or hexadecimal notation on 7 segment displays

Modules

 Internal configurations (seg.cfg.h)
 

Functions

void seg_init (void)
 
void seg_num (uint8_t num)
 
void seg_numLeft (uint8_t num)
 
void seg_numRight (uint8_t num)
 
void seg_hex (uint8_t hex)
 
void seg_hexLeft (uint8_t hex)
 
void seg_hexRight (uint8_t hex)
 

Function Documentation

void seg_init ( void  )

Initializes I/Os for both seven-segment displays

Definition at line 31 of file seg.c.

void seg_num ( uint8_t  num)

Show a decimal number between 0 and 99 on the displays

Parameters
numNumber to display

Definition at line 38 of file seg.c.

void seg_numLeft ( uint8_t  num)

Show a decimal digit (0 - 9) on the left display

Parameters
numNumber to display

Definition at line 45 of file seg.c.

void seg_numRight ( uint8_t  num)

Show a decimal digit (0 - 9) on the right display

Parameters
numNumber to display

Definition at line 50 of file seg.c.

void seg_hex ( uint8_t  hex)

Show a hexadecimal number between 0 and 255 on the displays

Parameters
hexValue to display

Definition at line 55 of file seg.c.

void seg_hexLeft ( uint8_t  hex)

Show a hexadecimal digit (0 - 15) on the left display

Parameters
hexValue to display

Definition at line 60 of file seg.c.

void seg_hexRight ( uint8_t  hex)

Show a hexadecimal digit (0 - 15) on the right display

Parameters
hexValue to display

Definition at line 65 of file seg.c.