cleanup: remove unnecessary (=invisible) leading spaces
This commit is contained in:
+4
-4
@@ -59,16 +59,16 @@ API_VERSION in the code.
|
||||
//////// Functions to be provided by the driver module
|
||||
|
||||
//// Mandatory functions (necessary for all drivers)
|
||||
|
||||
|
||||
// initialize driver: return >= 0 on success
|
||||
int (*init) (Driver *drvthis);
|
||||
|
||||
|
||||
// close driver
|
||||
void (*close) (Driver *drvthis);
|
||||
|
||||
|
||||
//// Essential output functions (necessary for output drivers)
|
||||
|
||||
|
||||
// get display width & height (in characters)
|
||||
int (*width) (Driver *drvthis);
|
||||
int (*height) (Driver *drvthis);
|
||||
@@ -91,7 +91,7 @@ API_VERSION in the code.
|
||||
// get key from driver: returns a string denoting the key pressed
|
||||
const char *(*get_key) (Driver *drvthis);
|
||||
|
||||
|
||||
|
||||
//// Extended output functions (optional; core provides alternatives)
|
||||
|
||||
// draw a bar from pos (x,y) upward / to the right filling promille of len chars
|
||||
|
||||
@@ -50,14 +50,14 @@ int main(int ac,char **av) {
|
||||
} else {
|
||||
fd=openRawSerialLine(av[1],atoi(av[2]),FLOW_NONE,O_RDWR);
|
||||
}
|
||||
|
||||
|
||||
filein=open(av[3], O_RDWR);
|
||||
|
||||
read(filein, bmpin, 62);
|
||||
|
||||
|
||||
read(filein, bmpin, 512);
|
||||
close(filein);
|
||||
|
||||
|
||||
idx=0;
|
||||
for(j=31;j>-1;j--) {
|
||||
for(i=0;i<16;i++) {
|
||||
@@ -72,9 +72,9 @@ int main(int ac,char **av) {
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
sprintf(str,"%cDG", 27);
|
||||
|
||||
|
||||
if(atoi(av[4])==0) {
|
||||
for (idx=0;idx<480;idx++) {
|
||||
gxbits[idx]=gxbits[idx] ^ 255;
|
||||
|
||||
@@ -614,7 +614,7 @@ Send char(0)
|
||||
fanX is a value from 0 to 255, 0 is fan off, 255 is fan full speed.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
1.5.1 Keypad
|
||||
------------
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<chapter id="driver-api">
|
||||
<title>The LCDproc driver API</title>
|
||||
|
||||
|
||||
<para>
|
||||
This chapter describes the driver API of v0.5 of LCDproc.
|
||||
At time of this writing, this version is not released and some things might
|
||||
@@ -74,16 +74,16 @@ API_VERSION in the code.
|
||||
//////// Functions to be provided by the driver module
|
||||
|
||||
//// Mandatory functions (necessary for all drivers)
|
||||
|
||||
|
||||
// initialize driver: returns >= 0 on success
|
||||
int (*init) (Driver *drvthis);
|
||||
|
||||
|
||||
// close driver
|
||||
void (*close) (Driver *drvthis);
|
||||
|
||||
|
||||
//// Essential output functions (necessary for output drivers)
|
||||
|
||||
|
||||
// get display width / height (in characters; 1-based)
|
||||
int (*width) (Driver *drvthis);
|
||||
int (*height) (Driver *drvthis);
|
||||
@@ -106,7 +106,7 @@ API_VERSION in the code.
|
||||
// get key from driver: returns a string denoting the key pressed
|
||||
const char *(*get_key) (Driver *drvthis);
|
||||
|
||||
|
||||
|
||||
//// Extended output functions (optional; core provides alternatives)
|
||||
|
||||
// draw a bar from pos (x,y) upward / to the right filling promille of len chars
|
||||
@@ -256,7 +256,7 @@ typedef struct my_driver_private {
|
||||
p->fd = -1;
|
||||
p->cellheight = 8;
|
||||
p->cellwidth = 6;
|
||||
|
||||
|
||||
(... continue with the rest of your init routine)
|
||||
</screen>
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ CFontz633 chipset.
|
||||
<listitem><para>
|
||||
Select the output device to use [default: <filename>/dev/lcd</filename>]
|
||||
may be serial device or USB device in serial emulation mode.
|
||||
|
||||
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ This section covers the joystick input driver for LCDd.
|
||||
<literal>pos</literal> determining the direction.
|
||||
The exact numbering of the axes depends on the hardware used.
|
||||
</para>
|
||||
|
||||
|
||||
<para>
|
||||
<replaceable>KEY</replaceable> can be one of the keys that LCDd recognizes
|
||||
(<literal>Left</literal>, <literal>Right</literal>, <literal>Up</literal>,
|
||||
@@ -68,7 +68,7 @@ This section covers the joystick input driver for LCDd.
|
||||
that represents each button. The exact numbering of the buttons depends on the
|
||||
hardware used.
|
||||
</para>
|
||||
|
||||
|
||||
<para>
|
||||
<replaceable>KEY</replaceable> can be one of the keys that LCDd recognizes
|
||||
(<literal>Left</literal>, <literal>Right</literal>, <literal>Up</literal>,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<!ENTITY license SYSTEM "license.docbook">
|
||||
|
||||
<!ENTITY ppttrouble SYSTEM "drivers/ppttrouble.docbook">
|
||||
|
||||
|
||||
<!ENTITY bayrad SYSTEM "drivers/bayrad.docbook">
|
||||
<!ENTITY CFontz SYSTEM "drivers/CFontz.docbook">
|
||||
<!ENTITY CFontz633 SYSTEM "drivers/CFontz633.docbook">
|
||||
|
||||
Reference in New Issue
Block a user