Подключение 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.

lcd4linux2.conf 664B

1234567891011121314151617181920212223242526272829303132333435363738
  1. Display SimpleLCD {
  2. Driver 'SimpleLCD'
  3. Port '/dev/ttyACM0'
  4. Speed 1200
  5. Options 0
  6. Size '16x2'
  7. }
  8. Widget Termo {
  9. class 'Text'
  10. expression exec('wget -q http://termo.tomsk.ru/data.txt -O-',60000).' C'
  11. width 16
  12. prefix iconv('UTF-8', 'KOI8-R', 'В Томске ')
  13. update 60000
  14. }
  15. Widget Time {
  16. class 'Text'
  17. align 'A'
  18. speed 250
  19. prefix iconv('UTF-8', 'KOI8-R', 'Сегодня ')
  20. expression iconv('UTF-8', 'KOI8-R', exec('LANG=ru_RU.UTF8 date +"%d %B, %H:%M"',1000))
  21. width 16
  22. update 1000
  23. }
  24. Layout My {
  25. Row1 {
  26. Col1 'Termo'
  27. }
  28. Row2 {
  29. Col1 'Time'
  30. }
  31. }
  32. Display 'SimpleLCD'
  33. Layout 'My'