line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
6057
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
33
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
108
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
return [ |
5
|
|
|
|
|
|
|
{ |
6
|
|
|
|
|
|
|
'class_description' => 'generated from LCDd.conf', |
7
|
|
|
|
|
|
|
'element' => [ |
8
|
|
|
|
|
|
|
'Brightness', |
9
|
|
|
|
|
|
|
{ |
10
|
|
|
|
|
|
|
'description' => 'Set the initial brightness ', |
11
|
|
|
|
|
|
|
'max' => '1000', |
12
|
|
|
|
|
|
|
'min' => '1', |
13
|
|
|
|
|
|
|
'type' => 'leaf', |
14
|
|
|
|
|
|
|
'upstream_default' => '480', |
15
|
|
|
|
|
|
|
'value_type' => 'integer' |
16
|
|
|
|
|
|
|
}, |
17
|
|
|
|
|
|
|
'Contrast', |
18
|
|
|
|
|
|
|
{ |
19
|
|
|
|
|
|
|
'description' => 'Set the initial contrast ', |
20
|
|
|
|
|
|
|
'max' => '1000', |
21
|
|
|
|
|
|
|
'min' => '0', |
22
|
|
|
|
|
|
|
'type' => 'leaf', |
23
|
|
|
|
|
|
|
'upstream_default' => '480', |
24
|
|
|
|
|
|
|
'value_type' => 'integer' |
25
|
|
|
|
|
|
|
}, |
26
|
|
|
|
|
|
|
'Device', |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
'default' => '/dev/ttyUSB0', |
29
|
|
|
|
|
|
|
'description' => 'Port the device is connected to (by default first USB serial port)', |
30
|
|
|
|
|
|
|
'type' => 'leaf', |
31
|
|
|
|
|
|
|
'value_type' => 'uniline' |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
'Edition', |
34
|
|
|
|
|
|
|
{ |
35
|
|
|
|
|
|
|
'description' => 'Edition level of the device (can be 1, 2 or 3) ', |
36
|
|
|
|
|
|
|
'type' => 'leaf', |
37
|
|
|
|
|
|
|
'upstream_default' => '2', |
38
|
|
|
|
|
|
|
'value_type' => 'uniline' |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
'OffBrightness', |
41
|
|
|
|
|
|
|
{ |
42
|
|
|
|
|
|
|
'description' => 'Set the initial off-brightness |
43
|
|
|
|
|
|
|
This value is used when the display is normally |
44
|
|
|
|
|
|
|
switched off in case LCDd is inactive', |
45
|
|
|
|
|
|
|
'max' => '1000', |
46
|
|
|
|
|
|
|
'min' => '1', |
47
|
|
|
|
|
|
|
'type' => 'leaf', |
48
|
|
|
|
|
|
|
'upstream_default' => '100', |
49
|
|
|
|
|
|
|
'value_type' => 'integer' |
50
|
|
|
|
|
|
|
}, |
51
|
|
|
|
|
|
|
'Size', |
52
|
|
|
|
|
|
|
{ |
53
|
|
|
|
|
|
|
'description' => 'set display size |
54
|
|
|
|
|
|
|
Note: The size can be obtained directly from device for edition 2 & 3.', |
55
|
|
|
|
|
|
|
'type' => 'leaf', |
56
|
|
|
|
|
|
|
'upstream_default' => '16x2', |
57
|
|
|
|
|
|
|
'value_type' => 'uniline' |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
], |
60
|
|
|
|
|
|
|
'name' => 'LCDd::SureElec' |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
] |
63
|
|
|
|
|
|
|
; |
64
|
|
|
|
|
|
|
|