add get_free_chars() function
This commit is contained in:
@@ -715,6 +715,21 @@ HD44780_num (Driver *drvthis, int x, int num)
|
|||||||
lib_adv_bignum(drvthis, x, num, do_init, NUM_CCs);
|
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...
|
// Sets a custom character from 0-7...
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -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 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 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_backlight (Driver *drvthis, int on);
|
||||||
MODULE_EXPORT void HD44780_output (Driver *drvthis, int state);
|
MODULE_EXPORT void HD44780_output (Driver *drvthis, int state);
|
||||||
|
|||||||
Reference in New Issue
Block a user