|
Project 4
Seven-Segment Display with I2C interface
|
Neff Site |
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... | |
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 |
| #define EF4057_ADDR 0x70 |
| #define EF4057_BRIGHTNES 6 |
| #define EF4057_DIGITS 4 |
| 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.
| digit | The digit to be cleared. |
| void ef4057_display_off | ( | void | ) |
Turn display off.
| void ef4057_display_on | ( | void | ) |
Turn display on.
| void ef4057_init | ( | void | ) |
Initialize display.
| void ef4057_put_number | ( | int | number | ) |
Display a number on the display.
| number | The number to be displayed. |
| void ef4057_send_command | ( | uint8_t | command | ) |
Send a command.
Sends a command to the display controller.
| command | The command to be sent. |
| void ef4057_send_data | ( | uint8_t | dest, |
| uint8_t | data | ||
| ) |
Send a data byte.
Sends a data byte to the specified DRAM address.
| dest | The address of the DRAM destination. |
| data | The byte to be sent. |
| 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.
| digit | The position of the digit to be set. |
| number | The value for the specified position. |
| Contact |
Generated by
1.8.13
|