add hardware_cear() function
This commit is contained in:
+21
-7
@@ -149,9 +149,10 @@ MODULE_EXPORT int stay_in_foreground = 0;
|
|||||||
MODULE_EXPORT int supports_multiple = 1;
|
MODULE_EXPORT int supports_multiple = 1;
|
||||||
MODULE_EXPORT char *symbol_prefix = "MtxOrb_";
|
MODULE_EXPORT char *symbol_prefix = "MtxOrb_";
|
||||||
|
|
||||||
static void MtxOrb_linewrap (Driver *drvthis, int on);
|
static void MtxOrb_hardware_clear(Driver *drvthis);
|
||||||
static void MtxOrb_autoscroll (Driver *drvthis, int on);
|
static void MtxOrb_linewrap(Driver *drvthis, int on);
|
||||||
static void MtxOrb_cursorblink (Driver *drvthis, int on);
|
static void MtxOrb_autoscroll(Driver *drvthis, int on);
|
||||||
|
static void MtxOrb_cursorblink(Driver *drvthis, int on);
|
||||||
static void MtxOrb_cursor_goto(Driver *drvthis, int x, int y);
|
static void MtxOrb_cursor_goto(Driver *drvthis, int x, int y);
|
||||||
|
|
||||||
|
|
||||||
@@ -387,10 +388,8 @@ MtxOrb_init (Driver *drvthis)
|
|||||||
}
|
}
|
||||||
memset(p->backingstore, ' ', p->width * p->height);
|
memset(p->backingstore, ' ', p->width * p->height);
|
||||||
|
|
||||||
/*
|
/* set initial LCD configuration */
|
||||||
* Configure display
|
MtxOrb_hardware_clear(drvthis);
|
||||||
*/
|
|
||||||
|
|
||||||
MtxOrb_linewrap(drvthis, DEFAULT_LINEWRAP);
|
MtxOrb_linewrap(drvthis, DEFAULT_LINEWRAP);
|
||||||
MtxOrb_autoscroll(drvthis, DEFAULT_AUTOSCROLL);
|
MtxOrb_autoscroll(drvthis, DEFAULT_AUTOSCROLL);
|
||||||
MtxOrb_cursorblink(drvthis, DEFAULT_CURSORBLINK);
|
MtxOrb_cursorblink(drvthis, DEFAULT_CURSORBLINK);
|
||||||
@@ -736,6 +735,21 @@ MtxOrb_output (Driver *drvthis, int state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear the LCD using ints hardware command
|
||||||
|
* \param drvthis Pointer to driver structure.
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
MtxOrb_hardware_clear (Driver *drvthis)
|
||||||
|
{
|
||||||
|
PrivateData *p = drvthis->private_data;
|
||||||
|
|
||||||
|
write(p->fd, "\xFE" "X", 2);
|
||||||
|
|
||||||
|
debug(RPT_DEBUG, "MtxOrb: cleared LCD");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Turn the LCD's built-in linewrapping feature on or off.
|
* Turn the LCD's built-in linewrapping feature on or off.
|
||||||
* \param drvthis Pointer to driver structure.
|
* \param drvthis Pointer to driver structure.
|
||||||
|
|||||||
Reference in New Issue
Block a user