diff options
author | David Lamparter <equinox@diac24.net> | 2012-04-01 00:22:16 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-04-01 00:22:16 +0200 |
commit | 0a60a76afcf938c6885395fb16b6c168179921e5 (patch) | |
tree | 868d844830a6e7e588dde90faf144b78366b50c8 /lcd.h | |
parent | 75a61c57fb0402f777bfa828dd71818a97ed54a4 (diff) |
adapted to ATtiny26 / sublab setup
Diffstat (limited to 'lcd.h')
-rw-r--r-- | lcd.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef _LCD_H +#define _LCD_H + +#include <stdint.h> +#include <stdbool.h> +#include <avr/pgmspace.h> + +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 */ |