E:/misc/avr/KS0073/ks0073.c File Reference

AVR-GCC library for interfacing a KS0073 based LCD via hardware SPI. More...

#include "ks0073.h"

Functions

void lcd_put_cmd (uint8_t cmd)
 Send a single command to display controller.
void lcd_put_data (uint8_t data)
 Send a single data byte to display controller.
void lcd_puts (char *s)
void lcd_puts_p (const char *progmem_s)
void lcd_gotoxy (uint8_t col, uint8_t row)
uint8_t lcd_get_status (void)
void lcd_init (void)


Detailed Description

AVR-GCC library for interfacing a KS0073 based LCD via hardware SPI.

Author: J. Gerlach - gerlach_joerg(at)web.de


Function Documentation

uint8_t lcd_get_status ( void   ) 

read instruction register from LCD

read LCD busy state from MSB, lower bits are current cursor address

void lcd_gotoxy ( uint8_t  col,
uint8_t  row 
)

set cursor (x,y) position on display

set adress in DDRAM, position is 0-based (of course). the lcd_puts..() functions can then be used to write text to display

void lcd_init ( void   ) 

Init-sequence, taken from dip204-6 datasheet from Electronic Assembly

Set 8-bit mode, 4 rows, clear all icons and display. Takes a while due to the 20ms startup delay

void lcd_puts ( char *  lcds  ) 

Writes a 0-terminated string to LCD,

special characters are ignored (yet)

void lcd_puts_p ( const char *  progmem_s  ) 

Writes a 0-terminated constant string from flash to LCD,

to send literals use lcd_puts_P() instead; special characters are ignored (yet)


Generated on Thu Aug 16 17:24:23 2007 for KS0073 - SPI Library by  doxygen 1.5.2