/* $Id$ * $URL$ * * 6x8 font * * Copyright (C) 1999, 2000, 2004 Michael Reinelt * Copyright (C) 2004 The LCD4Linux Team * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * */ #define ______ 0x00 #define _____O 0x01 #define ____O_ 0x02 #define ____OO 0x03 #define ___O__ 0x04 #define ___O_O 0x05 #define ___OO_ 0x06 #define ___OOO 0x07 #define __O___ 0x08 #define __O__O 0x09 #define __O_O_ 0x0a #define __O_OO 0x0b #define __OO__ 0x0c #define __OO_O 0x0d #define __OOO_ 0x0e #define __OOOO 0x0f #define _O____ 0x10 #define _O___O 0x11 #define _O__O_ 0x12 #define _O__OO 0x13 #define _O_O__ 0x14 #define _O_O_O 0x15 #define _O_OO_ 0x16 #define _O_OOO 0x17 #define _OO___ 0x18 #define _OO__O 0x19 #define _OO_O_ 0x1a #define _OO_OO 0x1b #define _OOO__ 0x1c #define _OOO_O 0x1d #define _OOOO_ 0x1e #define _OOOOO 0x1f unsigned char Font_6x8[256][8] = { [0x20] {______, ______, ______, ______, ______, ______, ______, ______}, [0x21] {___O__, ___O__, ___O__, ___O__, ______, ______, ___O__, ______}, [0x22] {__O_O_, __O_O_, __O_O_, ______, ______, ______, ______, ______}, [0x23] {__O_O_, __O_O_, _OOOOO, __O_O_, _OOOOO, __O_O_, __O_O_, ______}, [0x24] {___O__, __OOOO, _O_O__, __OOO_, ___O_O, _OOOO_, ___O__, ______}, [0x25] {_OO___, _OO__O, ____O_, ___O__, __O___, _O__OO, ____OO, ______}, [0x26] {__OO__, _O__O_, _O_O__, __O___, _O_O_O, _O__O_, __OO_O, ______}, [0x27] {__OO__, ___O__, __O___, ______, ______, ______, ______, ______}, [0x28] {____O_, ___O__, __O___, __O___, __O___, ___O__, ____O_, ______}, [0x29] {__O___, ___O__, ____O_, ____O_, ____O_, ___O__, __O___, ______}, [0x2a] {______, ___O__, _O_O_O, __OOO_, _O_O_O, ___O__, ______, ______}, [0x2b] {______, ___O__, ___O__, _OOOOO, ___O__, ___O__, ______, ______}, [0x2c] {______, ______, ______, ______, __OO__, ___O__, __O___, ______}, [0x2d] {______, ______, ______, _OOOOO, ______, ______, ______, ______}, [0x2e] {______, ______, ______, ______, ______, __OO__, __OO__, ______}, [0x2f] {______, _____O, ____O_, ___O__, __O___, _O____, ______, ______}, [0x30] {__OOO_, _O___O, _O__OO, _O_O_O, _OO__O, _O___O, __OOO_, ______}, [0x31] {___O__, __OO__, ___O__, ___O__, ___O__, ___O__, __OOO_, ______}, [0x32] {__OOO_, _O___O, _____O, ____O_, ___O__, __O___, _OOOOO, ______}, [0x33] {_OOOOO, ____O_, ___O__, ____O_, _____O, _O___O, __OOO_, ______}, [0x34] {____O_, ___OO_, __O_O_, _O__O_, _OOOOO, ____O_, ____O_, ______}, [0x35] {_OOOOO, _O____, _O____, _OOOO_, _____O, _O___O, __OOO_, ______}, [0x36] {___OO_, __O___, _O____, _OOOO_, _O___O, _O___O, __OOO_, ______}, [0x37] {_OOOOO, _____O, ____O_, ___O__, __O___, __O___, __O___, ______}, [0x38] {__OOO_, _O___O, _O___O, __OOO_, _O___O, _O___O, __OOO_, ______}, [0x39] {__OOO_, _O___O, _O___O, __OOOO, _____O, ____O_, __OO__, ______}, [0x3a] {______
#
# $Id: README.Drivers,v 1.4 2001/03/09 13:08:11 ltoetsch Exp $
#

How to write new display drivers for lcd4linux

If you plan to write a new display driver for lcd4linux, you should follow
this guidelines:

* use Skeleton.c as a start point.
  You might also have a look at Text.c

* create a new sourcefile <drivername>.c and add it to the bottom of
  Makefile.am

* add an entry to configure.in

* there's no need for a <drivername>.h

* create one (or more) unique display names (your driver will be selected by
  this name in the 'Display'-line of lcd4linux.conf).

* include "display.h" in your driver, to get the LCD structure and various 
  BAR_ definitions

* include "cfg.h" if you need to access settings in the config file.

* create a LCD table at the bottom of your driver, and fill it with the
  appropriate values. Take care that you specify the correct bar capabilities
  of your display or driver:

  BAR_L:  horizontal bars headed left
  BAR_R:  horizontal bars headed right
  BAR_H2: driver supports horizontal dual-bars
  BAR_U:  vertical bars bottom-up
  BAR_D:  vertical bars top-down
  BAR_V2: driver supports vertical dual-bars

* edit display.c and create a reference to your LCD table:

     external LCD YourDriver[];

* extend the FAMILY table in display.c with your driver:

     FAMILY Driver[] = {
       { "Skeleton",      Skeleton },
       { "MatrixOrbital", MatrixOrbital },
       { "YourFamily",    YourDriver },
       { "" }
     };

* write the correspondig init(), clear(), put(), bar(), quit() and
  flush()-functions. There's no need to use a framebuffer and display its
  contents with the flush()- call (as in MatrixOrbital.c), you can directly
  write to the display in the put()- and bar()-functions, and use an empty
  flush()-function. But if you have a limited number of user-defined
  characters, and therefore you have to do some sort of 'character reduction'
  or similar stuff, you will have to use a framebuffer and the flush()-call. 
_}, [0x7e] {______, ___O__, ____O_, _OOOOO, ____O_, ___O__, ______, ______}, [0x7f] {______, ___O__, __O___, _OOOOO, __O___, ___O__, ______, ______}, [0xb0] {__OOO_, __O_O_, __OOO_, ______, ______, ______, ______, ______}, [0xe1] {__O_O_, ______, __OOO_, _____O, __OOOO, _O___O, __OOOO, ______}, [0xe2] {__OOO_, _O___O, _OOOO_, _O___O, _O___O, _O_OO_, _O____, ______}, [0xef] {__O_O_, ______, __OOO_, _O___O, _O___O, _O___O, __OOO_, ______}, [0xf5] {__O_O_, ______, _O___O, _O___O, _O___O, _O__OO, __OO_O, ______}, };