More formatting updates. Reduced whitespace, looks even better.
This commit is contained in:
@@ -42,7 +42,6 @@
|
||||
#include "hd44780-low.h"
|
||||
#include "hd44780-drivers.h"
|
||||
|
||||
|
||||
// default parallel port address
|
||||
#ifndef LPTPORT
|
||||
#define LPTPORT 0x378
|
||||
@@ -50,7 +49,6 @@
|
||||
|
||||
unsigned int port = LPTPORT;
|
||||
|
||||
|
||||
lcd_logical_driver *HD44780;
|
||||
HD44780_functions *hd44780_functions;
|
||||
|
||||
@@ -71,7 +69,6 @@ static int numDisplays = 0;
|
||||
// input span list but is kept to save some cpu cycles.
|
||||
static int *dispSizes = NULL;
|
||||
|
||||
|
||||
// function declarations
|
||||
void HD44780_flush ();
|
||||
void HD44780_flush_box (int lft, int top, int rgt, int bot);
|
||||
@@ -225,7 +222,6 @@ HD44780_init (lcd_logical_driver * driver, char *args)
|
||||
//HD44780_close();
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Set the functions the driver supports...
|
||||
// These are the default HD44780 functions
|
||||
driver->clear = (void *) -1;
|
||||
@@ -303,7 +299,6 @@ uPause (int delayCalls)
|
||||
//TODO: put in option for nanosleep rather than dummy I/O call
|
||||
}
|
||||
|
||||
|
||||
// displayID - ID of display to use (0 = all displays)
|
||||
static void
|
||||
HD44780_senddata (unsigned char displayID, unsigned char flags, unsigned char ch)
|
||||
@@ -312,7 +307,6 @@ HD44780_senddata (unsigned char displayID, unsigned char flags, unsigned char ch
|
||||
hd44780_functions->uPause (40);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Clean-up
|
||||
//
|
||||
@@ -358,7 +352,6 @@ HD44780_flush ()
|
||||
HD44780_draw_frame (lcd.framebuf);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
HD44780_flush_box (int lft, int top, int rgt, int bot)
|
||||
{
|
||||
@@ -377,7 +370,6 @@ HD44780_flush_box (int lft, int top, int rgt, int bot)
|
||||
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Changes screen contrast (0-255; 140 seems good)
|
||||
//
|
||||
@@ -396,7 +388,6 @@ HD44780_backlight (int on)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Toggle the built-in linewrapping feature
|
||||
//
|
||||
@@ -421,7 +412,6 @@ common_autoscroll (int on)
|
||||
hd44780_functions->uPause (1600);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Sets up for vertical bars. Call before lcd.vbar()
|
||||
//
|
||||
@@ -602,7 +592,6 @@ HD44780_hbar (int x, int y, int len)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Sets up for big numbers.
|
||||
//
|
||||
@@ -614,7 +603,6 @@ HD44780_init_num ()
|
||||
//write(fd, out, 2);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Writes a big number.
|
||||
//
|
||||
@@ -626,7 +614,6 @@ HD44780_num (int x, int num)
|
||||
//write(fd, out, 4);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Sets a custom character from 0-7...
|
||||
//
|
||||
@@ -657,7 +644,6 @@ HD44780_set_char (int n, char *dat)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
HD44780_icon (int which, char dest)
|
||||
{
|
||||
@@ -697,11 +683,9 @@ HD44780_icon (int which, char dest)
|
||||
|
||||
};
|
||||
|
||||
|
||||
HD44780_set_char (dest, &icons[which][0]);
|
||||
}
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////
|
||||
// Blasts a single frame onscreen, to the lcd...
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user