Added a heartbeat function to the driver code. Both the

MatrixOrbital driver and the curses driver now have their own
heartbeat functions.
This commit is contained in:
ddouthitt
2001-10-04 21:05:15 +00:00
parent a1a557a767
commit 39b84431a0
10 changed files with 95 additions and 16 deletions
+5 -4
View File
@@ -116,13 +116,14 @@ draw_screen (screen * s, int timer)
//debug("draw_screen done\n");
if (heartbeat) {
if ((s->heartbeat == HEART_ON) || heartbeat == HEART_ON) {
lcd_ptr->heartbeat(s->heartbeat);
//if ((s->heartbeat == HEART_ON) || heartbeat == HEART_ON) {
// Set this to pulsate like a real heart beat...
// (binary is fun... :)
// lcd_ptr->heartbeat ();
lcd_ptr->icon (!((timer + 4) & 5), 0);
lcd_ptr->chr (lcd_ptr->wid, 1, 0);
}
//lcd_ptr->icon (!((timer + 4) & 5), 0);
//lcd_ptr->chr (lcd_ptr->wid, 1, 0);
//}
// else
// This seems unnecessary... heartbeat is nicer...
// if ((s->heartbeat == HEART_OPEN) && heartbeat != HEART_OFF) {