Go to the source code of this file.
◆ LCD_WIDTH
◆ LCD_LINES
◆ LCD_LINE1
◆ LCD_LINE2
◆ LCD_LINE3
◆ LCD_LINE4
◆ LCDInitCGRAM()
Initializes the Character Generator RAM.
This routine basically defines the antenna-character (DCF77-symbol), the micro and the Omega. Since a character 0 cannot be used for printf, we use character 1 for it.
The symbols for bargraph display use character codes 2 to 6. Character code 7 is unused until now.
◆ LDCInit()
Initializes the LC-Display.
◆ LCDCursorOn()
| void LCDCursorOn |
( |
void |
| ) |
|
◆ LCDCursorOff()
| void LCDCursorOff |
( |
void |
| ) |
|
◆ LCDClear()
Clears the LCD and sets Cursor to Home Postion.
◆ LCDGoTo()
| void LCDGoTo |
( |
uint8_t |
pos | ) |
|
Sets the Cursor Position.
Lines start at 0 and 64 for the 2x16 and
0,64,20 and 84 for the 4x20-Display
- Parameters
-
◆ LCDGoToXY()
| uint8_t LCDGoToXY |
( |
uint8_t |
x, |
|
|
uint8_t |
y |
|
) |
| |
Sets the Cursor Position.
- Parameters
-
| x | The Row Number |
| y | The Line Number |
- Returns
- The Position as raw Display Value
◆ LCDWriteData()
| void LCDWriteData |
( |
char |
c | ) |
|
Writes a Data-Byte to the Display.
- Parameters
-
◆ LCDPrintLine_P()
| void LCDPrintLine_P |
( |
uint8_t |
line, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
Printf for one complete Line of the Display.
This is a handy printf-like function for outputting display content. It ensures that no more characters are written than one line can hold and automatically deletes all characters beyond the content so that no fragments of the previous content remain visible.
- Parameters
-
| line | The line to print on (0-based) |
| fmt | A printf-like format string |
| ... | Optional further parameters |
- Returns
◆ LCDWriteString()
| void LCDWriteString |
( |
const char * |
s | ) |
|
Displays a String.
- Parameters
-
◆ LCDWriteString_P()
| void LCDWriteString_P |
( |
const char * |
s | ) |
|
Displays a String in Flash Memory.
- Parameters
-
◆ LCDHBarGraph()
| int8_t LCDHBarGraph |
( |
uint8_t |
line, |
|
|
uint8_t |
val |
|
) |
| |
Prints a Line of Bar Graph. The rest of the line is cleared.
- Parameters
-
| line | The 0-based Line Number |
| val | The number of black Lines to draw. This is not a percent value! Maximum is five times the width of the display (i.e. 100 for 4x20 and 80 for 2x16). |
- Returns
- -1 on Error, 0 if OK
◆ LCDBuildVBarChars()
| bool LCDBuildVBarChars |
( |
uint8_t |
nBars | ) |
|
Builds the Character Array for vertical Bar Graphs.
- Parameters
-
| nBars | The number of black Bars |
- Returns
- True if OK, false if not
◆ LCDSecondlyCallback()
| void LCDSecondlyCallback |
( |
void |
| ) |
|
Has to be called once per Second by the surrounding program.
Timing of functions like LCD-Backlight determine on this timing. If you call this function at other intervals, times will change accordingly.
◆ LCDActivateBacklight()
| void LCDActivateBacklight |
( |
void |
| ) |
|
◆ LCDSetBrightness()
| static void LCDSetBrightness |
( |
uint8_t |
val | ) |
|
|
inlinestatic |
Sets the Brightness of the LCD Backlight.
- Note
- This is a temporary value and is not stored in the configuration memory.
- Parameters
-
◆ LCDGetBrightness()
| static uint8_t LCDGetBrightness |
( |
void |
| ) |
|
|
inlinestatic |
Gets the current Brightness of the LCD Backlight.
- Returns
- The Brightness (0=0%, 255=100%)
◆ LCDSetContrast()
| static void LCDSetContrast |
( |
uint8_t |
val | ) |
|
|
inlinestatic |
Sets the Contrast of the LCD.
- Note
- This is a temporary value and is not stored in the configuration memory.
- Parameters
-
◆ LCDGetContrast()
| static uint8_t LCDGetContrast |
( |
void |
| ) |
|
|
inlinestatic |
Gets the current Contrast of the LCD.
- Returns
- The Contrast
◆ LCDBuildVBarChar()
| bool LCDBuildVBarChar |
( |
uint8_t |
nBars | ) |
|
Builds a Character for vertical Bar Graph.
The vertical bar graph character can be printed as character code 3
- Parameters
-
| nBars | The number of black Lines (0..8) |
- Returns
- True if OK, false if not
◆ lcdVbarChar
Holds the characters for Vertical Bar Graph from Line 3 to 0.
◆ LCDStartLine
| const uint8_t LCDStartLine[] |
◆ lcd