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

38 lines
664 B

Display SimpleLCD {
Driver 'SimpleLCD'
Port '/dev/ttyACM0'
Speed 1200
Options 0
Size '16x2'
}
Widget Termo {
class 'Text'
expression exec('wget -q http://termo.tomsk.ru/data.txt -O-',60000).' C'
width 16
prefix iconv('UTF-8', 'KOI8-R', 'В Томске ')
update 60000
}
Widget Time {
class 'Text'
align 'A'
speed 250
prefix iconv('UTF-8', 'KOI8-R', 'Сегодня ')
expression iconv('UTF-8', 'KOI8-R', exec('LANG=ru_RU.UTF8 date +"%d %B, %H:%M"',1000))
width 16
update 1000
}
Layout My {
Row1 {
Col1 'Termo'
}
Row2 {
Col1 'Time'
}
}
Display 'SimpleLCD'
Layout 'My'