-/* $Id: HD44780.c,v 1.39 2003/09/10 03:48:22 reinelt Exp $
+/* $Id: HD44780.c,v 1.40 2003/09/11 04:09:52 reinelt Exp $
*
* driver for display modules based on the HD44780 chip
*
*
*
* $Log: HD44780.c,v $
+ * Revision 1.40 2003/09/11 04:09:52 reinelt
+ * minor cleanups
+ *
* Revision 1.39 2003/09/10 03:48:22 reinelt
* Icons for M50530, new processing scheme (Ticks.Text...)
*
if (cfg_number("Icons", 0, 0, CHARS, &Icons)<0) return -1;
if (Icons>0) {
- info ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
+ debug ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
icon_init(Lcd.rows, Lcd.cols, XRES, YRES, CHARS, Icons, HD_define_char);
Self->icons=Icons;
Lcd.icons=Icons;
-/* $Id: M50530.c,v 1.14 2003/09/10 03:48:22 reinelt Exp $
+/* $Id: M50530.c,v 1.15 2003/09/11 04:09:53 reinelt Exp $
*
* driver for display modules based on the M50530 chip
*
*
*
* $Log: M50530.c,v $
+ * Revision 1.15 2003/09/11 04:09:53 reinelt
+ * minor cleanups
+ *
* Revision 1.14 2003/09/10 03:48:22 reinelt
* Icons for M50530, new processing scheme (Ticks.Text...)
*
if (cfg_number("Icons", 0, 0, CHARS, &Icons)<0) return -1;
if (Icons>0) {
- info ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
+ debug ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
icon_init(Lcd.rows, Lcd.cols, XRES, YRES, CHARS, Icons, M5_define_char);
Self->icons=Icons;
Lcd.icons=Icons;
-/* $Id: MatrixOrbital.c,v 1.39 2003/09/10 03:48:23 reinelt Exp $
+/* $Id: MatrixOrbital.c,v 1.40 2003/09/11 04:09:53 reinelt Exp $
*
* driver for Matrix Orbital serial display modules
*
*
*
* $Log: MatrixOrbital.c,v $
+ * Revision 1.40 2003/09/11 04:09:53 reinelt
+ * minor cleanups
+ *
* Revision 1.39 2003/09/10 03:48:23 reinelt
* Icons for M50530, new processing scheme (Ticks.Text...)
*
if (cfg_number("Icons", 0, 0, CHARS, &Icons)<0) return -1;
if (Icons>0) {
- info ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
+ debug ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
icon_init(Lcd.rows, Lcd.cols, XRES, YRES, CHARS, Icons, MO_define_char);
Self->icons=Icons;
Lcd.icons=Icons;
-/* $Id: USBLCD.c,v 1.16 2003/09/10 03:48:23 reinelt Exp $
+/* $Id: USBLCD.c,v 1.17 2003/09/11 04:09:53 reinelt Exp $
*
* Driver for USBLCD ( see http://www.usblcd.de )
* This Driver is based on HD44780.c
*
*
* $Log: USBLCD.c,v $
+ * Revision 1.17 2003/09/11 04:09:53 reinelt
+ * minor cleanups
+ *
* Revision 1.16 2003/09/10 03:48:23 reinelt
* Icons for M50530, new processing scheme (Ticks.Text...)
*
if (cfg_number("Icons", 0, 0, CHARS, &Icons)<0) return -1;
if (Icons>0) {
- info ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
+ debug ("reserving %d of %d user-defined characters for icons", Icons, CHARS);
icon_init(Lcd.rows, Lcd.cols, XRES, YRES, CHARS, Icons, USBLCD_define_char);
Self->icons=Icons;
Lcd.icons=Icons;
-/* $Id: icon.c,v 1.6 2003/09/10 14:01:53 reinelt Exp $
+/* $Id: icon.c,v 1.7 2003/09/11 04:09:53 reinelt Exp $
*
* generic icon and heartbeat handling
*
*
*
* $Log: icon.c,v $
+ * Revision 1.7 2003/09/11 04:09:53 reinelt
+ * minor cleanups
+ *
* Revision 1.6 2003/09/10 14:01:53 reinelt
* icons nearly finished\!
*
int icon_peek (int row, int col)
{
- return Screen[row*COLS+col];
+ if (Screen)
+ return Screen[row*COLS+col];
+ else
+ return -1;
}
-/* $Id: processor.c,v 1.44 2003/09/10 15:59:39 reinelt Exp $
+/* $Id: processor.c,v 1.45 2003/09/11 04:09:53 reinelt Exp $
*
* main data processing
*
*
*
* $Log: processor.c,v $
+ * Revision 1.45 2003/09/11 04:09:53 reinelt
+ * minor cleanups
+ *
* Revision 1.44 2003/09/10 15:59:39 reinelt
* minor cleanups
*
}
} else if (*s=='&') {
- lcd_icon(*(++s)-'0', 0, row, p-buffer+1);
- *p++='\t';
+ if (lcd_icon(*(++s)-'0', 0, row, p-buffer+1)<0)
+ *p++='*'; // error
+ else
+ *p++='\t'; // all ok
} else {
*p++=*s;
tack=tick;
if (tack>tick_icon) tack=tick_icon;
- debug ("using tick=%d msec, tack=%d msec", tick, tack);
+ debug ("========================");
+ debug ("Timings:");
+ debug ("%3d msec Text updates", tick_text);
+ debug ("%3d msec Bar updates", tick_bar );
+ debug ("%3d msec Icon updates", tick_icon);
+ debug ("%3d msec GPO updates", tick_gpo );
+ debug ("------------------------");
+ debug ("%3d msec data collection", tick);
+ debug ("%3d msec data processing", tack);
+ debug ("========================");
for (i=1; i<=lines; i++) {
char buffer[8], *p;