LCD handling functions for Proxima-01 LCD. More...
#include <avr/io.h>#include <avr/interrupt.h>#include <util/delay.h>#include "common.h"

Go to the source code of this file.
Functions | |
| void | LCDP_init (void) |
| Initialize ports. | |
| void | LCDP_toggleCLB (void) |
| Toggle clock burst pin of PCF2111. | |
| void | LCDP_writeLatch (uint32_t segments, bool_t latchA) |
| Put data to latch A or latch B. | |
| void | LCDP_writeLatches (void) |
| Write internal latches to PCF2111's latches. | |
| void | LCDP_clear (void) |
| Clear all segment of LCD. | |
| void | LCDP_all (void) |
| Shows all segment of LCD. | |
| void | LCDP_printNumber (uint16_t number, bool_t leadingZeros) |
| Print number to LCD in decimal format. | |
| void | LCDP_printNumberHex (uint16_t number) |
| Print number to LCD in hexadecimal format. | |
| void | LCDP_printNumberHexLZ (uint16_t number) |
| Print number to LCD in hexadecimal format. | |
Variables | |
| uint64_t | latches = 0 |
| Internal mirror of latches in PCF2111. | |
| const uint64_t | LCDP_characters [4][16] |
| Array to store the numbers for the four digit of LCD. | |
LCD handling functions for Proxima-01 LCD.
Created: 2008-03-31 10:19:22 Last modify: 2010-08-08 06:54:19 ivanovp {Time-stamp} Licence: GPL
Definition in file lcdproxima.c.
| void LCDP_all | ( | void | ) |
| void LCDP_clear | ( | void | ) |
Clear all segment of LCD.
Definition at line 179 of file lcdproxima.c.
| void LCDP_init | ( | void | ) | [inline] |
Initialize ports.
Definition at line 106 of file lcdproxima.c.
| void LCDP_printNumber | ( | uint16_t | number, | |
| bool_t | leadingZeros | |||
| ) |
Print number to LCD in decimal format.
Input:
| number | Number to print. | |
| leadingZeros | TRUE: print leading zeros. FALSE: don't print zeros. |
Definition at line 203 of file lcdproxima.c.
| void LCDP_printNumberHex | ( | uint16_t | number | ) |
Print number to LCD in hexadecimal format.
Input:
| number | Number to print. |
Definition at line 249 of file lcdproxima.c.
| void LCDP_printNumberHexLZ | ( | uint16_t | number | ) |
Print number to LCD in hexadecimal format.
Input:
| number | Number to print. |
Definition at line 280 of file lcdproxima.c.
| void LCDP_toggleCLB | ( | void | ) |
Toggle clock burst pin of PCF2111.
Definition at line 115 of file lcdproxima.c.
| void LCDP_writeLatch | ( | uint32_t | segments, | |
| bool_t | latchA | |||
| ) |
Put data to latch A or latch B.
Both latches have 32 bits.
Input:
| segments | Latch data: which segments should be enabled. | |
| latchA | Select latch. TRUE: latch A, FALSE: latch B. |
Definition at line 130 of file lcdproxima.c.
| void LCDP_writeLatches | ( | void | ) |
Write internal latches to PCF2111's latches.
Definition at line 168 of file lcdproxima.c.
| uint64_t latches = 0 |
Internal mirror of latches in PCF2111.
Upper 32-bit is latch A, lower 32-bit is latch B.
Definition at line 20 of file lcdproxima.c.
| const uint64_t LCDP_characters[4][16] |
Array to store the numbers for the four digit of LCD.
Definition at line 27 of file lcdproxima.c.
1.6.3