EPPL example libraries  0.1 alpha
 All Files Functions Variables Groups Pages
alcddrv.h File Reference

Header file for uniwersal alphanumeric display. More...

#include <stdint.h>
#include "alcddrv_config.h"
#include "alcddrv_cmd.h"
#include "eppl.h"

Go to the source code of this file.

Macros

#define ALCD_PINCONFIG
 LCD pin initialization data. More...
 
#define ALCD_PIN_DEFINED(p)   ((p) != EPPL_NP)
 Check if pin is defined. More...
 
#define ALCD_CANREAD   ALCD_PIN_DEFINED(ALCD_RW)
 Define if we have read access to LCD. More...
 
Alphanumeric display driver pins

Pins setting for alphanumeric display driver. You have to define this setting in alcddrv_conf.h file.

All undefined pins wouold be set to EPPL_NP values.

#define ALCD_RS   EPPL_NP
 RS pin. More...
 
#define ALCD_RW   EPPL_NP
 RW pin. More...
 
#define ALCD_E   EPPL_NP
 Enable pin. More...
 
#define ALCD_D0   EPPL_NP
 Data 0 Input/Output pin. More...
 
#define ALCD_D1   EPPL_NP
 Data 1 Input/Output pin. More...
 
#define ALCD_D2   EPPL_NP
 Data 2 Input/Output pin. More...
 
#define ALCD_D3   EPPL_NP
 Data 3 Input/Output pin. More...
 
#define ALCD_D4   EPPL_NP
 Data 4 Input/Output pin. More...
 
#define ALCD_D5   EPPL_NP
 Data 5 Input/Output pin. More...
 
#define ALCD_D6   EPPL_NP
 Data 6 Input/Output pin. More...
 
#define ALCD_D7   EPPL_NP
 Data 7 Input/Output pin. More...
 
Others

Other settings that do not have any specyfic cattegories.

#define ALCD_SX   16
 Number of columns. More...
 
#define ALCD_SY   2
 Number of rows. More...
 

Functions

void alcd_cmd (uint8_t cmd)
 Send single command byte. More...
 
void alcd_data (uint8_t data)
 Send signle data byte. More...
 
char alcd_rdata (void)
 Function to read one character from LCD. More...
 
void alcd_init (void)
 Initialize LCD. More...
 
void alcd_puts (const char *pstr)
 Put string. More...
 
void alcd_read (char *pstr, uint8_t size)
 Read data block. More...
 
void alcd_puts_P (const __flash char *pstr)
 Put string from program memory. More...
 
void alcd_defineChar (char c, const char *ppat)
 Define special character pattern. More...
 
void alcd_defineChar_P (char c, const __flash char *ppat)
 Define special character pattern from program memory. More...
 
void alcd_readDefinedChar (char c, char *ppat)
 Read defined character pattern. More...
 
static void alcd_cls (void)
 Clear screen. More...
 
static void alcd_home (void)
 Moves cursor home. More...
 
static void alcd_turnOnOff (uint8_t display, uint8_t cursor, uint8_t blink)
 Turn on or off. More...
 
static void alcd_shift (uint8_t right_left, uint8_t display_cursor)
 Shift display or cursor by one position. More...
 
static void alcd_entryMode (uint8_t inc_dec, uint8_t shift)
 Entry mode set. More...
 
static void alcd_goto (uint8_t y, uint8_t x)
 Move cursor to position. More...
 
static void alcd_putc (char c)
 Put a character. More...
 
static char alcd_getc (void)
 Get a character. More...
 

Detailed Description

Header file for uniwersal alphanumeric display.

Author
Radoslaw Koppel <r.koppel@k-el.com>
Date
2014 Driver for alphanumeric display compatible with hd44780 chip. Uses EPPL library.
See Also
<alcddrv> Alphanumeric display driver