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)
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user