add character cell size functions
This commit is contained in:
@@ -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)
|
||||
//
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user