added sed1520_cellwidth() and sed1520_cellheight()
based on a patch by rene ( just AT absorb it )
This commit is contained in:
@@ -267,6 +267,24 @@ sed1520_height (Driver *drvthis)
|
|||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////
|
||||||
|
// Returns the display width
|
||||||
|
//
|
||||||
|
MODULE_EXPORT int
|
||||||
|
sed1520_cellwidth (Driver *drvthis)
|
||||||
|
{
|
||||||
|
return cellwidth;
|
||||||
|
}
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////
|
||||||
|
// Returns the display height
|
||||||
|
//
|
||||||
|
MODULE_EXPORT int
|
||||||
|
sed1520_cellheight (Driver *drvthis)
|
||||||
|
{
|
||||||
|
return cellheight;
|
||||||
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// Clears the LCD screen
|
// Clears the LCD screen
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ MODULE_EXPORT int sed1520_init (Driver *drvthis, char *args);
|
|||||||
MODULE_EXPORT void sed1520_close (Driver *drvthis);
|
MODULE_EXPORT void sed1520_close (Driver *drvthis);
|
||||||
MODULE_EXPORT int sed1520_width (Driver *drvthis);
|
MODULE_EXPORT int sed1520_width (Driver *drvthis);
|
||||||
MODULE_EXPORT int sed1520_height (Driver *drvthis);
|
MODULE_EXPORT int sed1520_height (Driver *drvthis);
|
||||||
|
MODULE_EXPORT int sed1520_cellwidth (Driver *drvthis);
|
||||||
|
MODULE_EXPORT int sed1520_cellheight (Driver *drvthis);
|
||||||
MODULE_EXPORT void sed1520_clear (Driver *drvthis);
|
MODULE_EXPORT void sed1520_clear (Driver *drvthis);
|
||||||
MODULE_EXPORT void sed1520_flush (Driver *drvthis);
|
MODULE_EXPORT void sed1520_flush (Driver *drvthis);
|
||||||
MODULE_EXPORT void sed1520_string (Driver *drvthis, int x, int y, char string[]);
|
MODULE_EXPORT void sed1520_string (Driver *drvthis, int x, int y, char string[]);
|
||||||
|
|||||||
Reference in New Issue
Block a user