# # $Id: README.Png,v 1.1 2001/03/02 18:06:18 reinelt Exp $ # This is the README file for the Png display driver for lcd4linux. Preliminarys: libgd, libpng, libz Optional: perl, apache The driver creates the output file 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 "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 For details please look into README.Raster. To display this png file continuosly in a web page, follow these instructions: Copy the sample png.html to an appropriate place under your htdocs. Copy the sample nph-png perl script into your cgi-bin directory, and adjust png.html to contain this directory. Adjust nph-png to contain the path/filename of the outputfile (s -o above). Start lcd4linux -o path/filename.png. If you are on a slow connection to your webserver you might also adjust the $DELAY in nph-png or in lcd4linux.conf. Note: depending on your webervers configuration, you must rename nph-png to nph-png.pl or npg-png.cgi. Have fun. ='hidden' name='id' value='b3c86f5ac0a4215027cf256ba4d01eb203105443'/>
path: root/display.h
blob: 990ed7c05307be57659654e633bf91f3237ea520 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117