From 0a60a76afcf938c6885395fb16b6c168179921e5 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 1 Apr 2012 00:22:16 +0200 Subject: adapted to ATtiny26 / sublab setup --- lcd.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lcd.h (limited to 'lcd.h') diff --git a/lcd.h b/lcd.h new file mode 100644 index 0000000..333856d --- /dev/null +++ b/lcd.h @@ -0,0 +1,16 @@ +#ifndef _LCD_H +#define _LCD_H + +#include +#include +#include + +extern void lcd_init(void); +extern void lcd_command(uint8_t cmd, bool isdata); +extern void lcd_puts(const char * PROGMEM ptr, uint8_t cnt); + +#define lcd_put(ch) lcd_command(ch, 1) +#define lcd_line1() lcd_command(0x80, 0) +#define lcd_line2() lcd_command(0xc0, 0) + +#endif /* _LCD_H */ -- cgit v1.2.1