Originally Posted by
jack239
А как же драйвера.Откуда брал?почему продаёшь?
Ставится проще простого устанавливаем lcd4linux
PHP Code:
ipkg install lcd4linux
правим lcd4linux.conf
PHP Code:
Display LCD2USB {
Driver 'LCD2USB'
Size '20x2'
Contrast 250
Brightness 10
}
Widget Eth0Tx {
class 'Text'
expression (netdev('ppp0', 'Tx_bytes', 500))/1024
#prefix 'TX '
postfix 'kb/s'
width 10
precision 2
align 'L'
update tick
}
Widget Eth0Rx {
class 'Text'
expression (netdev('vlan1', 'Tx_bytes', 500))/1024
#prefix 'RX '
postfix 'kb/s'
width 10
precision 2
align 'R'
update tick
}
Widget Eth0RxBar {
class 'Bar'
expression (netdev('ppp0', 'Rx_bytes', 500))/1024
expression2 (netdev('vlan1', 'Rx_bytes', 500))/1024
#max 1000
min 0
style 'H'
length 10
direction 'E'
update tack
}
Widget Eth0TxBar {
class 'Bar'
expression (netdev('ppp0', 'Tx_bytes', 500))/1024
expression2 (netdev('vlan1', 'Tx_bytes', 500))/1024
#max 1000
min 0
style 'H'
length 10
direction 'E'
update tack
}
Widget RAM {
class 'Text'
expression meminfo('MemTotal')/1024
postfix 'MB sum'
width 9
precision 0
align 'R'
update tick
}
Widget RAMFree {
class 'Text'
expression meminfo('MemFree')/1024
postfix 'MB free'
width 10
precision 0
align 'R'
update tick
}
Widget CPU {
class 'Text'
expression uname('machine')
prefix 'CPU '
width 9
align 'L'
update tick
}
Widget CPUBusy {
class 'Text'
Prefix 'Bsy-'
expression ceil(proc_stat::cpu('busy',500))
width 7
align 'C'
update tick
}
Widget CPUSystem {
class 'Text'
Prefix 'Sys-'
expression ceil(proc_stat::cpu('system',500))
width 7
align 'C'
update tick
}
Widget CPUIdle {
class 'Text'
Prefix 'Id-'
expression ceil(proc_stat::cpu('idle',500))
width 6
align 'C'
update tick
}
Widget Uptime {
class 'Text'
expression uptime('%dd,%Hh,%Mm')
prefix 'Uptime '
width 20
align 'L'
update tick
}
Layout Default {
Row1 {
# Col1 'CPUBusy'
# Col8 'CPUSystem'
# Col15 'CPUIdle'
Col1 'Eth0TxBar'
Col11 'Eth0RxBar'
}
Row2 {
Col1 'Eth0Tx'
Col11 'Eth0Rx'
}
}
Variables {
tick 500
}
Display 'LCD2USB'
Радуемся как полосочки бегают ))))