overhaul for the NoritakeVFD driver (idea by Richard Moratti):
- Fixed vbar & hbar - Allowed for displays with 2 custom characters - Fixed cursor off - 16H - Data sheet for CU20045SCPB has error -> Cursor Off 14,16,17H - Tested with CU40026SCPB-T20A - 40x2 - Hardware Defaults to 19200 8E1 - Added new config parameter [Parity] to set serial data parity 0(none),1(odd),2(even) - Added config parameter OffBrightness - added support for big numbers
This commit is contained in:
@@ -47,7 +47,7 @@ lis_LDADD = libLCD.a @LIBFTDI@ libbignum.a
|
||||
MD8800_LDADD = libLCD.a
|
||||
mtc_s16209x_LDADD = libLCD.a
|
||||
MtxOrb_LDADD = libLCD.a libbignum.a
|
||||
NoritakeVFD_LDADD = libLCD.a
|
||||
NoritakeVFD_LDADD = libLCD.a libbignum.a
|
||||
picolcd_LDADD = @libusb_libs@ libLCD.a libbignum.a
|
||||
pyramid_LDADD = libLCD.a
|
||||
serialPOS_LDADD = libLCD.a libbignum.a
|
||||
@@ -91,7 +91,7 @@ MD8800_SOURCES = lcd.h lcd_lib.h MD8800.c MD8800.h report.h
|
||||
ms6931_SOURCES = lcd.h lcd_lib.h ms6931.h ms6931.c report.h
|
||||
mtc_s16209x_SOURCES = lcd.h lcd_lib.h mtc_s16209x.c mtc_s16209x.h report.h
|
||||
MtxOrb_SOURCES = lcd.h lcd_lib.h MtxOrb.c MtxOrb.h report.h adv_bignum.h
|
||||
NoritakeVFD_SOURCES = lcd.h lcd_lib.h NoritakeVFD.c NoritakeVFD.h report.h
|
||||
NoritakeVFD_SOURCES = lcd.h lcd_lib.h NoritakeVFD.c NoritakeVFD.h report.h adv_bignum.h
|
||||
picolcd_SOURCES = lcd.h picolcd.h picolcd.c report.h
|
||||
pyramid_SOURCES = lcd.h pylcd.c pylcd.h
|
||||
sed1330_SOURCES = lcd.h sed1330.h sed1330.c port.h lpt-port.h timing.h report.h
|
||||
|
||||
+526
-429
File diff suppressed because it is too large
Load Diff
@@ -23,11 +23,12 @@
|
||||
#define NORITAKEVFD_H
|
||||
#include "lcd.h"
|
||||
|
||||
#define DEFAULT_CELL_WIDTH 6
|
||||
#define DEFAULT_CELL_HEIGHT 8
|
||||
#define DEFAULT_CELL_WIDTH 5
|
||||
#define DEFAULT_CELL_HEIGHT 7
|
||||
#define DEFAULT_DEVICE "/dev/lcd"
|
||||
#define DEFAULT_SPEED 9600
|
||||
#define DEFAULT_BRIGHTNESS 140
|
||||
#define DEFAULT_OFFBRIGHTNESS 100
|
||||
#define DEFAULT_SIZE "20x4"
|
||||
#define DEFAULT_PARITY 0
|
||||
|
||||
@@ -44,12 +45,16 @@ MODULE_EXPORT void NoritakeVFD_chr (Driver *drvthis, int x, int y, char c);
|
||||
|
||||
MODULE_EXPORT void NoritakeVFD_vbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
||||
MODULE_EXPORT void NoritakeVFD_hbar (Driver *drvthis, int x, int y, int len, int promille, int options);
|
||||
MODULE_EXPORT int NoritakeVFD_icon(Driver *drvthis, int x, int y, int icon);
|
||||
MODULE_EXPORT void NoritakeVFD_num(Driver *drvthis, int x, int num);
|
||||
MODULE_EXPORT int NoritakeVFD_icon (Driver *drvthis, int x, int y, int icon);
|
||||
MODULE_EXPORT void NoritakeVFD_cursor (Driver *drvthis, int x, int y, int state);
|
||||
|
||||
MODULE_EXPORT void NoritakeVFD_set_char (Driver *drvthis, int n, char *dat);
|
||||
MODULE_EXPORT int NoritakeVFD_get_free_chars (Driver *drvthis);
|
||||
MODULE_EXPORT void NoritakeVFD_set_char (Driver *drvthis, int n, unsigned char *dat);
|
||||
|
||||
MODULE_EXPORT int NoritakeVFD_get_brightness (Driver *drvthis, int state);
|
||||
MODULE_EXPORT void NoritakeVFD_set_brightness (Driver *drvthis, int state, int promille);
|
||||
MODULE_EXPORT void NoritakeVFD_output (Driver *drvthis, int state);
|
||||
MODULE_EXPORT int NoritakeVFD_get_brightness(Driver *drvthis, int state);
|
||||
MODULE_EXPORT void NoritakeVFD_set_brightness(Driver *drvthis, int state, int promille);
|
||||
MODULE_EXPORT void NoritakeVFD_backlight (Driver *drvthis, int on);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user