MtxOrb need to be maintained. I lost custom char and Contrast goes wrong.
This commit is contained in:
@@ -56,10 +56,10 @@ Bind=127.0.0.1
|
|||||||
Port=13666
|
Port=13666
|
||||||
# Listen on this specified port; defaults to 13666.
|
# Listen on this specified port; defaults to 13666.
|
||||||
|
|
||||||
#ReportLevel=3
|
ReportLevel=4
|
||||||
# Sets the reporting level; defaults to 2 (warnings and errors only).
|
# Sets the reporting level; defaults to 2 (warnings and errors only).
|
||||||
|
|
||||||
#ReportToSyslog=yes
|
ReportToSyslog=no
|
||||||
# Should we report to syslog instead of stderr ? Default: no
|
# Should we report to syslog instead of stderr ? Default: no
|
||||||
|
|
||||||
WaitTime=5
|
WaitTime=5
|
||||||
@@ -74,7 +74,7 @@ User=nobody
|
|||||||
# it will be a background screen, only visible when no other screens are
|
# it will be a background screen, only visible when no other screens are
|
||||||
# active.
|
# active.
|
||||||
|
|
||||||
Foreground=no
|
Foreground=yes
|
||||||
# The server will stay in the foreground if set to true.
|
# The server will stay in the foreground if set to true.
|
||||||
|
|
||||||
DriverPath=server/drivers/
|
DriverPath=server/drivers/
|
||||||
@@ -350,7 +350,7 @@ Device=/dev/ttyS1
|
|||||||
# Matrix Orbital driver
|
# Matrix Orbital driver
|
||||||
|
|
||||||
# Select the output device to use [/dev/lcd]
|
# Select the output device to use [/dev/lcd]
|
||||||
device=/dev/lcd
|
device=/dev/ttyS0
|
||||||
|
|
||||||
# Set the display size [20x4]
|
# Set the display size [20x4]
|
||||||
size=20x4
|
size=20x4
|
||||||
@@ -364,14 +364,14 @@ enablebacklight=yes
|
|||||||
# Set the initial contrast [140]
|
# Set the initial contrast [140]
|
||||||
# NOTE: The driver will ignore this if the display
|
# NOTE: The driver will ignore this if the display
|
||||||
# is a vfd or vfd as they don't have this feature
|
# is a vfd or vfd as they don't have this feature
|
||||||
contrast=140
|
contrast=800
|
||||||
|
|
||||||
# Set the communication speed [19200]
|
# Set the communication speed [19200]
|
||||||
speed=19200
|
speed=19200
|
||||||
|
|
||||||
# Set the display type [lcd]
|
# Set the display type [lcd]
|
||||||
# Possible settings: lcd, lkd, vfd, vkd
|
# Possible settings: lcd, lkd, vfd, vkd
|
||||||
type=lcd
|
type=lkd
|
||||||
|
|
||||||
# See [input] section for an explanation of the key mappings
|
# See [input] section for an explanation of the key mappings
|
||||||
# This might not be implemented in 0.5 but is implented in 0.4.3
|
# This might not be implemented in 0.5 but is implented in 0.4.3
|
||||||
|
|||||||
@@ -200,6 +200,8 @@ typedef struct p {
|
|||||||
int cellwidth;
|
int cellwidth;
|
||||||
int cellheight;
|
int cellheight;
|
||||||
char info[255]; /* static data from MtxOrb_get_info */
|
char info[255]; /* static data from MtxOrb_get_info */
|
||||||
|
/* LibData *libdata; */
|
||||||
|
/* Private Data of the new library: Work in progress */
|
||||||
} PrivateData;
|
} PrivateData;
|
||||||
|
|
||||||
/* Vars for the server core */
|
/* Vars for the server core */
|
||||||
@@ -308,10 +310,10 @@ MtxOrb_init (Driver *drvthis, char *args)
|
|||||||
p->widthBYheight = w * h;
|
p->widthBYheight = w * h;
|
||||||
|
|
||||||
/* Get contrast */
|
/* Get contrast */
|
||||||
if (0<=drvthis->config_get_int ( drvthis->name , "Contrast" , 0 , DEFAULT_CONTRAST) && drvthis->config_get_int ( drvthis->name , "Contrast" , 0 , DEFAULT_CONTRAST) <= 255) {
|
if (0<=drvthis->config_get_int ( drvthis->name , "Contrast" , 0 , DEFAULT_CONTRAST) && drvthis->config_get_int ( drvthis->name , "Contrast" , 0 , DEFAULT_CONTRAST) <= 1000) {
|
||||||
contrast = drvthis->config_get_int ( drvthis->name , "Contrast" , 0 , DEFAULT_CONTRAST);
|
contrast = drvthis->config_get_int ( drvthis->name , "Contrast" , 0 , DEFAULT_CONTRAST);
|
||||||
} else {
|
} else {
|
||||||
report (RPT_WARNING, "MtxOrb: Contrast must be between 0 and 255. Using default value.");
|
report (RPT_WARNING, "MtxOrb: Contrast must be between 0 and 1000. Using default value.");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get speed */
|
/* Get speed */
|
||||||
|
|||||||
Reference in New Issue
Block a user