Project 4  Seven-Segment Display with I2C interface
Neff Site
Macros | Functions
ef4057.h File Reference

Header file for the EF4057 seven-segment display module driver. More...

Go to the source code of this file.

Macros

#define EF4057_ADDR   0x70
 
#define EF4057_DIGITS   4
 
#define EF4057_BRIGHTNES   6
 

Functions

void ef4057_send_command (uint8_t command)
 Send a command. More...
 
void ef4057_send_data (uint8_t dest, uint8_t data)
 Send a data byte. More...
 
void ef4057_clear_digit (uint8_t digit)
 Clear a digit. More...
 
void ef4057_set_digit (uint8_t digit, uint8_t number)
 Set a digit. More...
 
void ef4057_init (void)
 Initialize display. More...
 
void ef4057_display_on (void)
 Turn display on. More...
 
void ef4057_display_off (void)
 Turn display off. More...
 
void ef4057_put_number (int number)
 Display a number on the display. More...
 

Detailed Description

Header file for the EF4057 seven-segment display module driver.

The EF4057 module is a seven segment-display display that uses the HT16K33 16*8 LED controller driver. The digits of the display are controlled by the following display RAM addresses:

Digit DRAM Address
1 0
2 2
3 6
4 8
Author
Wolfgang Neff
Version
2.0
Date
2017-12-29
History
Created: 2017-08-03
Modified: 2017-12-29

Macro Definition Documentation

◆ EF4057_ADDR

#define EF4057_ADDR   0x70

◆ EF4057_BRIGHTNES

#define EF4057_BRIGHTNES   6

◆ EF4057_DIGITS

#define EF4057_DIGITS   4

Function Documentation

◆ ef4057_clear_digit()

void ef4057_clear_digit ( uint8_t  digit)

Clear a digit.

Clears the specified digit on the display. The digits are numbered from left to right starting with 1. I. e. digit 1 is the left most 4 is the right most digit.

Parameters
digitThe digit to be cleared.

◆ ef4057_display_off()

void ef4057_display_off ( void  )

Turn display off.

◆ ef4057_display_on()

void ef4057_display_on ( void  )

Turn display on.

◆ ef4057_init()

void ef4057_init ( void  )

Initialize display.

◆ ef4057_put_number()

void ef4057_put_number ( int  number)

Display a number on the display.

Parameters
numberThe number to be displayed.

◆ ef4057_send_command()

void ef4057_send_command ( uint8_t  command)

Send a command.

Sends a command to the display controller.

Parameters
commandThe command to be sent.

◆ ef4057_send_data()

void ef4057_send_data ( uint8_t  dest,
uint8_t  data 
)

Send a data byte.

Sends a data byte to the specified DRAM address.

Parameters
destThe address of the DRAM destination.
dataThe byte to be sent.

◆ ef4057_set_digit()

void ef4057_set_digit ( uint8_t  digit,
uint8_t  number 
)

Set a digit.

Sets a digit on the display. The digits are numbered from left to right starting with 1. I. e. digit 1 is the left most 4 is the right most digit.

Parameters
digitThe position of the digit to be set.
numberThe value for the specified position.
Contact