diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-03 09:39:52 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-09-03 09:39:52 +0000 |
commit | 3d641c92a5886554b181cec78b8d83f870154d6d (patch) | |
tree | 3cfaa783b519997b62751383808563505b9af425 /firmware/drivers | |
parent | c3a1bd2fce22d6e5efc21a8787cd49a4c1e8efdb (diff) |
Added lcd_putc()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2148 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/lcd.c | 6 | ||||
-rw-r--r-- | firmware/drivers/lcd.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/drivers/lcd.c b/firmware/drivers/lcd.c index 4bdecd41f5..03f667acfa 100644 --- a/firmware/drivers/lcd.c +++ b/firmware/drivers/lcd.c @@ -420,6 +420,12 @@ void lcd_puts(int x, int y, unsigned char *string) lcd_write(false,lcd_ascii[*(unsigned char*)string++]); } +void lcd_putc(int x, int y, unsigned char ch) +{ + lcd_write(true,LCD_CURSOR(x,y)); + lcd_write(false,lcd_ascii[ch]); +} + void lcd_define_pattern (int which,char *pattern,int length) { int i; diff --git a/firmware/drivers/lcd.h b/firmware/drivers/lcd.h index 1e623a7d09..ac7a7d505b 100644 --- a/firmware/drivers/lcd.h +++ b/firmware/drivers/lcd.h @@ -29,6 +29,7 @@ extern void lcd_init(void); extern void lcd_clear_display(void); extern void lcd_backlight(bool on); extern void lcd_puts(int x, int y, unsigned char *string); +extern void lcd_putc(int x, int y, unsigned char ch); extern void lcd_scroll_pause(void); extern void lcd_scroll_resume(void); extern void lcd_puts_scroll(int x, int y, unsigned char* string ); |