# # $Id: README.Raster,v 1.3 2001/03/04 15:01:12 ltoetsch Exp $ # This is the README file for the Raster display driver for lcd4linux This driver is intended to create various raster formats, at the moment there is support for binary PPM (portable pixmap) and PNG. The driver creates the output file(s) specified with the -o switch. The parameter is used as a format string for sprintf(), if you specify '%d' in the output file, files with a sequence number will be created. The output file is first created with a '.tmp' extension, this temporary file will be written and closed, and finally (atomically) renamed. This way you can be shure that you will always get a complete file, but its contents changes every 'tick' milliseconds. Configuration: The driver needs/supports the following entries in lcd4linux.conf: Display: must be either "PPM" or "PNG" size: [columns]x[rows], e.g. "20x4" font: [xrex]x[yres], at the moment only "5x8" and "6x8" supported. pixel: [pixelsize]+[pixelgap], e.g. "5+1" gap: [row gap]x[column gap], e.g. "3x3" border: border width foreground: color of an active LCD Pixel, must be #rrggbb halfground: color of an inactive LCD Pixel, must be #rrggbb background: backlight color, must be #rrggbb This may look weird, but it is weird. Let's explain this a bit further: The raster driver tries to emulate a real LC display. A real LCD has a size of columns*rows characters. Each character consists of xres*yres LCD cells. One single cell will be represented by a rectangle of pixelsize*pixelsize pixels. If you want to, you can emulate the gap between this lcd cells by specifying a pixelgap greater than zero. Sometimes there's a gap between characters, too. You can specify this gap (in pixels again) horizontally and vertically. Usually this gap is the same size as a cell (which is pixelsize+pixelgap). If you specify either the row gap or the column gap as -1, this cell size will be used instead. If you use a font of 5x8, some characters may use the first and the last pixel. So you should specify a column gap, otherwise the caracters may touch. On the other hand, the 6x8 font never uses the first pixel. So you can omit the column gap, and will get the same text layout, but uninterupted bars! After all: don't try to understand this unless you have tried it out! 35e2e2b1579'>pid.h
blob: 84d253e2fbeaad47b0ebb14c667a2dfbea7f5b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* $Id: pid.h,v 1.1 2003/08/08 08:05:23 reinelt Exp $
 *
 * PID file handling
 *
 * Copyright 2003 by Michael Reinelt (reinelt@eunet.at)
 *
 * This program 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.
 *
 * This program 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.
 *
 *
 * $Log: pid.h,v $
 * Revision 1.1  2003/08/08 08:05:23  reinelt
 * added PID file handling
 *
 */

#ifndef _PID_H_
#define _PID_H_

int pid_init (const char *pidfile);
int pid_exit (const char *pidfile);

#endif