Подключение LCD дисплея к компьютеру через USB http://blindage.org/?p=2657
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

lcd4linux.conf 813B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Display SimpleLCD {
  2. Driver 'SimpleLCD'
  3. Port '/dev/ttyACM0'
  4. Speed 1200
  5. Options 0
  6. Size '16x2'
  7. }
  8. Widget WanTx {
  9. class 'Text'
  10. expression netdev('eth0.1', 'Tx_bytes', 1000)/1024
  11. prefix 'WAN ^'
  12. precision 0
  13. update 1000
  14. }
  15. Widget WanRx {
  16. class 'Text'
  17. expression netdev('eth0.1', 'Rx_bytes', 1000)/1024
  18. prefix 'v'
  19. precision 0
  20. update 1000
  21. }
  22. Widget Load {
  23. class 'Text'
  24. expression loadavg(1)
  25. prefix 'LA '
  26. precision 1
  27. update 1000
  28. width 8
  29. }
  30. Widget Busy {
  31. class 'Text'
  32. expression proc_stat::cpu('busy', 1000)
  33. prefix 'CPU '
  34. precision 0
  35. update 1000
  36. width 8
  37. }
  38. Layout L16x2 {
  39. Row1 {
  40. Col1 'WanTx'
  41. Col11 'WanRx'
  42. }
  43. Row2 {
  44. Col1 'Busy'
  45. Col9 'Load'
  46. }
  47. }
  48. Display 'SimpleLCD'
  49. Layout 'L16x2'