line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
8470
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
37
|
|
2
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
172
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
return [ |
5
|
|
|
|
|
|
|
{ |
6
|
|
|
|
|
|
|
'class_description' => 'generated from LCDd.conf', |
7
|
|
|
|
|
|
|
'element' => [ |
8
|
|
|
|
|
|
|
'Device', |
9
|
|
|
|
|
|
|
{ |
10
|
|
|
|
|
|
|
'description' => 'Select the output device to use ', |
11
|
|
|
|
|
|
|
'type' => 'leaf', |
12
|
|
|
|
|
|
|
'upstream_default' => '/dev/lcd', |
13
|
|
|
|
|
|
|
'value_type' => 'uniline' |
14
|
|
|
|
|
|
|
}, |
15
|
|
|
|
|
|
|
'Keypad', |
16
|
|
|
|
|
|
|
{ |
17
|
|
|
|
|
|
|
'default' => 'yes', |
18
|
|
|
|
|
|
|
'description' => 'If you have a keypad connected. Keypad layout is currently not |
19
|
|
|
|
|
|
|
configureable from the config file.', |
20
|
|
|
|
|
|
|
'type' => 'leaf', |
21
|
|
|
|
|
|
|
'value_type' => 'uniline' |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
'Model', |
24
|
|
|
|
|
|
|
{ |
25
|
|
|
|
|
|
|
'choice' => [ |
26
|
|
|
|
|
|
|
'12232', |
27
|
|
|
|
|
|
|
'12832', |
28
|
|
|
|
|
|
|
'1602' |
29
|
|
|
|
|
|
|
], |
30
|
|
|
|
|
|
|
'description' => 'Select the LCD model ', |
31
|
|
|
|
|
|
|
'type' => 'leaf', |
32
|
|
|
|
|
|
|
'upstream_default' => '12232', |
33
|
|
|
|
|
|
|
'value_type' => 'enum' |
34
|
|
|
|
|
|
|
}, |
35
|
|
|
|
|
|
|
'Reboot', |
36
|
|
|
|
|
|
|
{ |
37
|
|
|
|
|
|
|
'description' => 'Reinitialize the LCD\'s BIOS |
38
|
|
|
|
|
|
|
normally you shouldn\'t need this', |
39
|
|
|
|
|
|
|
'type' => 'leaf', |
40
|
|
|
|
|
|
|
'upstream_default' => 'no', |
41
|
|
|
|
|
|
|
'value_type' => 'boolean', |
42
|
|
|
|
|
|
|
'write_as' => [ |
43
|
|
|
|
|
|
|
'no', |
44
|
|
|
|
|
|
|
'yes' |
45
|
|
|
|
|
|
|
] |
46
|
|
|
|
|
|
|
}, |
47
|
|
|
|
|
|
|
'Size', |
48
|
|
|
|
|
|
|
{ |
49
|
|
|
|
|
|
|
'default' => '20x4', |
50
|
|
|
|
|
|
|
'description' => 'Select the LCD size. Default depends on model: |
51
|
|
|
|
|
|
|
12232: 20x4 |
52
|
|
|
|
|
|
|
12832: 21x4 |
53
|
|
|
|
|
|
|
1602: 16x2', |
54
|
|
|
|
|
|
|
'type' => 'leaf', |
55
|
|
|
|
|
|
|
'value_type' => 'uniline' |
56
|
|
|
|
|
|
|
}, |
57
|
|
|
|
|
|
|
'Speed', |
58
|
|
|
|
|
|
|
{ |
59
|
|
|
|
|
|
|
'choice' => [ |
60
|
|
|
|
|
|
|
'9600', |
61
|
|
|
|
|
|
|
'19200' |
62
|
|
|
|
|
|
|
], |
63
|
|
|
|
|
|
|
'description' => 'Set the communication speed ', |
64
|
|
|
|
|
|
|
'type' => 'leaf', |
65
|
|
|
|
|
|
|
'upstream_default' => '19200', |
66
|
|
|
|
|
|
|
'value_type' => 'enum' |
67
|
|
|
|
|
|
|
}, |
68
|
|
|
|
|
|
|
'keypad_test_mode', |
69
|
|
|
|
|
|
|
{ |
70
|
|
|
|
|
|
|
'description' => 'If you have a non-standard keypad you can associate any keystrings to keys. |
71
|
|
|
|
|
|
|
There are 6 input keys in the CwLnx hardware that generate characters |
72
|
|
|
|
|
|
|
from \'A\' to \'F\'. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
The following is the built-in default mapping hardcoded in the driver. |
75
|
|
|
|
|
|
|
You can leave those unchanged if you have a standard keypad. |
76
|
|
|
|
|
|
|
You can change it if you want to report other keystrings or have a non |
77
|
|
|
|
|
|
|
standard keypad. |
78
|
|
|
|
|
|
|
KeyMap_A=Up |
79
|
|
|
|
|
|
|
KeyMap_B=Down |
80
|
|
|
|
|
|
|
KeyMap_C=Left |
81
|
|
|
|
|
|
|
KeyMap_D=Right |
82
|
|
|
|
|
|
|
KeyMap_E=Enter |
83
|
|
|
|
|
|
|
KeyMap_F=Escape |
84
|
|
|
|
|
|
|
keypad_test_mode permits one to test keypad assignment |
85
|
|
|
|
|
|
|
Default value is no', |
86
|
|
|
|
|
|
|
'type' => 'leaf', |
87
|
|
|
|
|
|
|
'upstream_default' => 'yes', |
88
|
|
|
|
|
|
|
'value_type' => 'uniline' |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
], |
91
|
|
|
|
|
|
|
'name' => 'LCDd::CwLnx' |
92
|
|
|
|
|
|
|
} |
93
|
|
|
|
|
|
|
] |
94
|
|
|
|
|
|
|
; |
95
|
|
|
|
|
|
|
|