mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2003-08-24 04:31:56 by reinelt]
icon.c icon.h added git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@227 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: MatrixOrbital.c,v 1.32 2003/08/22 03:45:08 reinelt Exp $
|
||||
/* $Id: MatrixOrbital.c,v 1.33 2003/08/24 04:31:56 reinelt Exp $
|
||||
*
|
||||
* driver for Matrix Orbital serial display modules
|
||||
*
|
||||
@@ -20,6 +20,9 @@
|
||||
*
|
||||
*
|
||||
* $Log: MatrixOrbital.c,v $
|
||||
* Revision 1.33 2003/08/24 04:31:56 reinelt
|
||||
* icon.c icon.h added
|
||||
*
|
||||
* Revision 1.32 2003/08/22 03:45:08 reinelt
|
||||
* bug in parallel port code fixed, more icons stuff
|
||||
*
|
||||
@@ -172,6 +175,7 @@
|
||||
#include "cfg.h"
|
||||
#include "lock.h"
|
||||
#include "display.h"
|
||||
#include "icon.h"
|
||||
#include "bar.h"
|
||||
|
||||
#define XRES 5
|
||||
@@ -264,6 +268,7 @@ static int MO_clear (int protocol)
|
||||
int gpo;
|
||||
|
||||
memset (FrameBuffer1, ' ', Lcd.rows*Lcd.cols*sizeof(char));
|
||||
icon_clear();
|
||||
bar_clear();
|
||||
GPO=0;
|
||||
|
||||
@@ -364,6 +369,8 @@ static int MO_init (LCD *Self, int protocol)
|
||||
Lcd.icons=Icons;
|
||||
}
|
||||
|
||||
icon_init(Lcd.rows, Lcd.cols, XRES, YRES, Icons);
|
||||
|
||||
bar_init(Lcd.rows, Lcd.cols, XRES, YRES, CHARS-Icons);
|
||||
bar_add_segment( 0, 0,255, 32); // ASCII 32 = blank
|
||||
bar_add_segment(255,255,255,255); // ASCII 255 = block
|
||||
|
||||
Reference in New Issue
Block a user