add character cell size functions

This commit is contained in:
marschap
2006-04-26 08:08:04 +00:00
parent 95a54cfbc1
commit 7c92890b64
2 changed files with 22 additions and 0 deletions
+20
View File
@@ -408,6 +408,26 @@ HD44780_height (Driver *drvthis)
return p->height;
}
/////////////////////////////////////////////////////////////////
// Returns the display's character cell width
//
MODULE_EXPORT int
HD44780_cellwidth (Driver *drvthis)
{
PrivateData *p = (PrivateData *) drvthis->private_data;
return p->cellwidth;
}
/////////////////////////////////////////////////////////////////
// Returns the display's character cell height
//
MODULE_EXPORT int
HD44780_cellheight (Driver *drvthis)
{
PrivateData *p = (PrivateData *) drvthis->private_data;
return p->cellheight;
}
/////////////////////////////////////////////////////////////////
// Set position (not part of API)
//
+2
View File
@@ -22,6 +22,8 @@ MODULE_EXPORT int HD44780_init (Driver *drvthis);
MODULE_EXPORT void HD44780_close (Driver *drvthis);
MODULE_EXPORT int HD44780_width (Driver *drvthis);
MODULE_EXPORT int HD44780_height (Driver *drvthis);
MODULE_EXPORT int HD44780_cellwidth (Driver *drvthis);
MODULE_EXPORT int HD44780_cellheight (Driver *drvthis);
MODULE_EXPORT void HD44780_clear (Driver *drvthis);
MODULE_EXPORT void HD44780_flush (Driver *drvthis);
MODULE_EXPORT void HD44780_string (Driver *drvthis, int x, int y, char *s);