AVR library
Macros | Functions | Variables
lcd_pcf8574.c File Reference

HD44780 lcd driver via PCF8574. More...

#include <inttypes.h>
#include <avr/io.h>
#include "hwdefs.h"
#include "swdefs.h"
#include "i2c.h"

Macros

#define PCF_D4   _BV(0)
 
#define PCF_D5   _BV(1)
 
#define PCF_D6   _BV(2)
 
#define PCF_D7   _BV(3)
 
#define PCF_RS   _BV(4)
 
#define PCF_RW   _BV(5)
 
#define PCF_EN   _BV(6)
 
#define PCF_BL   _BV(7)
 

Functions

void lcd_out (uint8_t data, uint8_t rs)
 
uint8_t lcd_busy (void)
 
uint8_t lcd_available (void)
 
uint8_t lcd_wr (uint8_t d, uint8_t rs)
 
void lcd_bl (uint8_t on)
 
uint8_t lcd_hwinit (uint8_t p1)
 
uint8_t lcd_pcfadr (void)
 

Variables

const uint8_t lcd_busw = 0
 

Detailed Description

HD44780 lcd driver via PCF8574.

HD44780 low level driver using PCF8574 over I2C. Define pin mapping in hwdefs.h.

Author
Matej Kogovsek (matej.nosp@m.@ham.nosp@m.radio.nosp@m..si)
Note
This file is part of mat-avr-lib

Variable Documentation

const uint8_t lcd_busw = 0

Extern variable defined by "driver" specifying used LCD bus width (0 = 4 bit, 0x10 = 8 bit)