add get_free_chars() function

This commit is contained in:
marschap
2006-10-15 10:45:47 +00:00
parent 904828032a
commit b54d2a810f
2 changed files with 16 additions and 0 deletions
+15
View File
@@ -715,6 +715,21 @@ HD44780_num (Driver *drvthis, int x, int num)
lib_adv_bignum(drvthis, x, num, do_init, NUM_CCs);
}
/**
* Get number of custom characters available.
* \param drvthis Pointer to driver structure.
* \return Number of custom characters (always NUM_CCs).
*/
MODULE_EXPORT int
HD44780_get_free_chars(Driver *drvthis)
{
//PrivateData *p = drvthis->private_data;
return NUM_CCs;
}
/////////////////////////////////////////////////////////////////
// Sets a custom character from 0-7...
//
+1
View File
@@ -35,6 +35,7 @@ MODULE_EXPORT void HD44780_num (Driver *drvthis, int x, int num);
MODULE_EXPORT int HD44780_icon (Driver *drvthis, int x, int y, int icon);
MODULE_EXPORT void HD44780_set_char (Driver *drvthis, int n, unsigned char *dat);
MODULE_EXPORT int HD44780_get_free_chars(Driver *drvthis);
MODULE_EXPORT void HD44780_backlight (Driver *drvthis, int on);
MODULE_EXPORT void HD44780_output (Driver *drvthis, int state);