blob: 95c58a8a23d60e72ac8023f66172f7c8edd15732 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
Display picoLCD {
Driver 'picoLCDGraphic'
Size '256x64'
Update 200
Contrast 230
Backlight 1
Inverted 1
Icons 1
}
Variables {
n 0
nkey 0
page 0
title 0
rss1 'http://slashdot.org/slashdot.rdf'
rss2 'http://www.engadget.com/rss.xml'
rss 'http://www.linuxsecurity.com/static-content/debian.rss'
tick 500
tack 100
minute 60000
}
Widget TimerW {
class 'Timer'
expression n=LCD::GPI(1);nkey=n
active 1
update 100
}
# export PYTHONPATH which should point to the scripts usually /etc/picoLCDGraphic/Scripts
Widget RSSFeedInfo {
class 'Text'
#expression title=1+page;param='!'.title;python::exec('rsstimer', 'getfeed', rss.param)
expression rss.' page:'.page
width 42
align 'L'
style 'bold'
#update minute
update 500
}
Widget RSSFeedTitle1 {
class 'Text'
expression title=1+page;param='!'.title;python::exec('rsstimer', 'getfeed', rss.param)
width 42
prefix '>'
align 'L'
#update minute
update 500
}
Widget RSSFeedTitle2 {
class 'Text'
expression title=2+page;param='!'.title;python::exec('rsstimer', 'getfeed', rss.param)
width 42
prefix '>'
align 'L'
#update minute
update 500
}
Widget RSSFeedTitle3 {
class 'Text'
expression title=3+page;param='!'.title;python::exec('rsstimer', 'getfeed', rss.param)
width 42
prefix '>'
align 'L'
#update minute
update 500
}
Widget RSSFeedTitle4 {
class 'Text'
expression title=4+page;param='!'.title;python::exec('rsstimer', 'getfeed', rss.param)
width 42
prefix '>'
align 'L'
#update minute
update 500
}
Widget GPO_kback {
class 'GPO'
expression rss=nkey==1?rss1:rss
update 100
}
Widget GPO_khome {
class 'GPO'
expression rss=nkey==2?rss2:rss
update 100
}
Widget GPO_kup {
class 'GPO'
expression page=nkey==5?page-1:page#;nkey==5?1:0
update 100
}
Widget GPO_kdown {
class 'GPO'
expression page=nkey==7?page+1:page#;nkey==7?1:0
update 100
}
Layout picoLCD {
Row1 {
Col1 'RSSFeedInfo'
}
Row2 {
Col1 'RSSFeedTitle1'
}
Row4 {
Col1 'RSSFeedTitle2'
}
Row6 {
Col1 'RSSFeedTitle3'
}
Row8 {
Col1 'RSSFeedTitle4'
}
Timer1 'TimerW'
GPO1 'GPO_kback'
GPO2 'GPO_khome'
GPO3 'GPO_kup'
GPO4 'GPO_kdown'
}
Display 'picoLCD'
Layout 'picoLCD'
|