A 4 line LCD works with this. I got it working now.
This my help soma else the code at /etc/lcd4linux.conf file mine looks like this:
Code: Select all
Variables {
tick 500
tack 100
}
Display LCD2USB {
Driver 'LCD2USB' #Model: LCD2USB
Size '20x4' #LCD dimension: 2004
Backlight 0
Icons 1
}
Widget IPaddress {
class 'Text' #Type: Text
expression netinfo::ipaddr('eth0') #eth0's ip
prefix 'IP: ' #display "IP: "
width 20 #display width: 19
align 'C' #display: center
update 1000
}
Widget Time {
class 'Text'
expression strftime('%a %I:%M:%S %p',time())
width 20
align 'C'
update 1000
}
Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 500)
prefix 'Busy '
postfix '%'
width 10
precision 1
align 'R'
update tick
}
Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 500)
expression2 proc_stat::cpu('system', 500)
length 10
direction 'E'
update tack
}
Widget Load {
class 'Text'
expression loadavg(1)
prefix 'Load '
postfix loadavg(1)>1.0?'!':' '
width 10
precision 1
align 'R'
update tick
}
Widget LoadBar {
class 'Bar'
expression loadavg(1)
max 2.0
length 10
direction 'E'
update tack
}
Layout Default {
Row1 {
Col1 'IPaddress' #Display Widget IPaddress in the first row and first column
}
Row2 {
Col1 'Time' #Display Widget Time in the second row and first column
}
Row3 {
Col1 'Busy'
Col11 'BusyBar'
}
Row4 {
Col1 'Load'
Col11 'LoadBar'
}
}
Display 'LCD2USB'
Layout 'Default'
It shows the IP, time, Busy and load on the 4 lins. The load is how many programs are running.
Now just need to know how to program the buttons.
-Raymond Day