Mon, 21 Dec 2015 21:09:36 +0100
Finished manual mode.
442 | 1 | /***************************************************************************** |
2 | * Copyright (C) 2015 | |
3 | * | |
4 | * Michiel Broek <mbroek at mbse dot eu> | |
5 | * | |
6 | * This file is part of the mbsePi-apps | |
7 | * | |
8 | * This is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * mbsePi-apps is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free | |
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
21 | *****************************************************************************/ | |
22 | ||
23 | #include "brewco.h" | |
24 | #include "slcd.h" | |
25 | #include "prompt.h" | |
26 | ||
27 | ||
28 | extern int debug; | |
29 | extern sys_config Config; | |
30 | extern int lcdHandle; | |
31 | extern int slcdHandle; | |
32 | ||
33 | ||
34 | ||
458
43a8ecb53637
Fixes for compiling on Raspberry.
Michiel Broek <mbroek@mbse.eu>
parents:
451
diff
changeset
|
35 | void prompt(int idx, char *text) |
442 | 36 | { |
37 | char message[81]; | |
38 | int line; | |
39 | ||
458
43a8ecb53637
Fixes for compiling on Raspberry.
Michiel Broek <mbroek@mbse.eu>
parents:
451
diff
changeset
|
40 | switch (idx) { |
442 | 41 | case 0: |
42 | #ifdef HAVE_WIRINGPI_H | |
43 | piLock(LOCK_LCD); | |
44 | lcdClear(lcdHandle); | |
45 | #endif | |
46 | slcdClear(slcdHandle); | |
47 | #ifdef HAVE_WIRINGPI_H | |
48 | piUnlock(LOCK_LCD); | |
49 | #endif | |
50 | return; | |
467 | 51 | case 100: if (text == NULL) |
52 | snprintf(message, Config.lcd_cols + 1, " "); | |
53 | else | |
54 | snprintf(message, Config.lcd_cols + 1, text); | |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
55 | break; |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
56 | case 101: snprintf(message, Config.lcd_cols + 1, " Brewco %s \007", VERSION); |
442 | 57 | break; |
58 | case 102: snprintf(message, Config.lcd_cols + 1, " SETUP MENU "); | |
59 | break; | |
60 | case 103: snprintf(message, Config.lcd_cols + 1, " AUTOMATIC MODE "); | |
61 | break; | |
62 | case 104: snprintf(message, Config.lcd_cols + 1, " MANUAL MODE "); | |
63 | break; | |
64 | case 111: snprintf(message, Config.lcd_cols + 1, "AUTO --> Mash In "); | |
65 | break; | |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
66 | case 112: snprintf(message, Config.lcd_cols + 1, "AUTO --> Phytase "); |
442 | 67 | break; |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
68 | case 113: snprintf(message, Config.lcd_cols + 1, "AUTO --> Glucanase "); |
442 | 69 | break; |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
70 | case 114: snprintf(message, Config.lcd_cols + 1, "AUTO --> Protease "); |
442 | 71 | break; |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
72 | case 115: snprintf(message, Config.lcd_cols + 1, "AUTO --> \342-Amylase "); /* Beta */ |
442 | 73 | break; |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
74 | case 116: snprintf(message, Config.lcd_cols + 1, "AUTO --> \340-Amylase 1"); /* Alpha */ |
442 | 75 | break; |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
76 | case 117: snprintf(message, Config.lcd_cols + 1, "AUTO --> \340-Amylase 2"); |
442 | 77 | break; |
78 | case 118: snprintf(message, Config.lcd_cols + 1, "AUTO --> Mash Out "); | |
79 | break; | |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
80 | case 119: snprintf(message, Config.lcd_cols + 1, "AUTO --> Boil "); |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
81 | break; |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
82 | case 120: snprintf(message, Config.lcd_cols + 1, "AUTO --> Cooling "); |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
83 | break; |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
84 | case 121: snprintf(message, Config.lcd_cols + 1, "AUTO --> Whirlpool "); |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
85 | break; |
461
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
86 | case 122: snprintf(message, Config.lcd_cols + 1, "AUTO --> Hopstand 1 "); |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
87 | break; |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
88 | case 123: snprintf(message, Config.lcd_cols + 1, "AUTO --> Hopstand 2 "); |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
89 | break; |
461
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
90 | case 124: snprintf(message, Config.lcd_cols + 1, "AUTO --> Hopstand 3 "); |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
91 | break; |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
92 | case 125: snprintf(message, Config.lcd_cols + 1, "AUTO --> Hop xx "); |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
93 | break; |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
94 | |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
95 | case 131: snprintf(message, Config.lcd_cols + 1, " Change Name "); |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
96 | break; |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
97 | case 132: snprintf(message, Config.lcd_cols + 1, " Toggle Yes/No "); |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
98 | break; |
445
3ec477cda546
Changed internal storage of temperatures to float. Added 2 prompts. Added editors for float and integer values. Added most of brewunit edit functions.
Michiel Broek <mbroek@mbse.eu>
parents:
443
diff
changeset
|
99 | case 133: snprintf(message, Config.lcd_cols + 1, " Change temperature "); |
3ec477cda546
Changed internal storage of temperatures to float. Added 2 prompts. Added editors for float and integer values. Added most of brewunit edit functions.
Michiel Broek <mbroek@mbse.eu>
parents:
443
diff
changeset
|
100 | break; |
3ec477cda546
Changed internal storage of temperatures to float. Added 2 prompts. Added editors for float and integer values. Added most of brewunit edit functions.
Michiel Broek <mbroek@mbse.eu>
parents:
443
diff
changeset
|
101 | case 134: snprintf(message, Config.lcd_cols + 1, " Change time "); |
3ec477cda546
Changed internal storage of temperatures to float. Added 2 prompts. Added editors for float and integer values. Added most of brewunit edit functions.
Michiel Broek <mbroek@mbse.eu>
parents:
443
diff
changeset
|
102 | break; |
448 | 103 | case 137: snprintf(message, Config.lcd_cols + 1, " Direct/Reverse "); |
104 | break; | |
105 | case 138: snprintf(message, Config.lcd_cols + 1, " Change parameter "); | |
106 | break; | |
461
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
107 | |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
108 | case 191: snprintf(message, Config.lcd_cols + 1, " Edit recipe "); |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
109 | break; |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
110 | case 192: snprintf(message, Config.lcd_cols + 1, " Edit PID "); |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
111 | break; |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
112 | case 193: snprintf(message, Config.lcd_cols + 1, " Edit brewsystem "); |
459
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
113 | break; |
463
a1da58215b65
Completed the recipe editor.
Michiel Broek <mbroek@mbse.eu>
parents:
461
diff
changeset
|
114 | case 194: snprintf(message, Config.lcd_cols + 1, " Edit Mashstep "); |
a1da58215b65
Completed the recipe editor.
Michiel Broek <mbroek@mbse.eu>
parents:
461
diff
changeset
|
115 | break; |
a1da58215b65
Completed the recipe editor.
Michiel Broek <mbroek@mbse.eu>
parents:
461
diff
changeset
|
116 | case 195: snprintf(message, Config.lcd_cols + 1, " Edit Addition "); |
a1da58215b65
Completed the recipe editor.
Michiel Broek <mbroek@mbse.eu>
parents:
461
diff
changeset
|
117 | break; |
a1da58215b65
Completed the recipe editor.
Michiel Broek <mbroek@mbse.eu>
parents:
461
diff
changeset
|
118 | case 196: snprintf(message, Config.lcd_cols + 1, " Edit Hopstand "); |
a1da58215b65
Completed the recipe editor.
Michiel Broek <mbroek@mbse.eu>
parents:
461
diff
changeset
|
119 | break; |
467 | 120 | case 200: if (text == NULL) |
121 | snprintf(message, Config.lcd_cols + 1, " "); | |
122 | else | |
123 | snprintf(message, Config.lcd_cols + 1, text); | |
442 | 124 | break; |
125 | case 202: snprintf(message, Config.lcd_cols + 1, " Manage Recipes "); | |
126 | break; | |
127 | case 203: snprintf(message, Config.lcd_cols + 1, " Manage Brewsystems "); | |
128 | break; | |
129 | case 204: snprintf(message, Config.lcd_cols + 1, " Manage Devices "); | |
130 | break; | |
131 | case 205: snprintf(message, Config.lcd_cols + 1, " Manage Simulators "); | |
132 | break; | |
133 | case 206: snprintf(message, Config.lcd_cols + 1, " Set Automation "); | |
134 | break; | |
135 | case 207: snprintf(message, Config.lcd_cols + 1, " Delay start? "); | |
136 | break; | |
137 | case 208: snprintf(message, Config.lcd_cols + 1, " Resume Process "); | |
138 | break; | |
139 | case 209: snprintf(message, Config.lcd_cols + 1, " Water Added? "); | |
140 | break; | |
141 | case 210: snprintf(message, Config.lcd_cols + 1, " Pump Prime "); | |
142 | break; | |
143 | case 211: snprintf(message, Config.lcd_cols + 1, " Setting Delay "); | |
144 | break; | |
145 | case 212: snprintf(message, Config.lcd_cols + 1, " To be started in "); | |
146 | break; | |
147 | case 213: snprintf(message, Config.lcd_cols + 1, " Iodine test "); | |
148 | break; | |
149 | case 214: snprintf(message, Config.lcd_cols + 1, " START COOLING "); | |
150 | break; | |
151 | case 215: snprintf(message, Config.lcd_cols + 1, " WHIRLPOOL "); | |
152 | break; | |
153 | case 216: snprintf(message, Config.lcd_cols + 1, " Timing Whirlpool "); | |
154 | break; | |
155 | case 217: snprintf(message, Config.lcd_cols + 1, " Brewing Process "); | |
156 | break; | |
157 | case 218: snprintf(message, Config.lcd_cols + 1, " Add Brewsystem? "); | |
158 | break; | |
467 | 159 | |
459
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
160 | case 221: snprintf(message, Config.lcd_cols + 1, " Select Recipe "); |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
161 | break; |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
162 | case 222: snprintf(message, Config.lcd_cols + 1, " Select Brewsystem "); |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
163 | break; |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
164 | case 223: snprintf(message, Config.lcd_cols + 1, " Select Device "); |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
165 | break; |
467 | 166 | case 300: if (text == NULL) |
167 | snprintf(message, Config.lcd_cols + 1, " "); | |
168 | else | |
169 | snprintf(message, Config.lcd_cols + 1, text); | |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
170 | break; |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
171 | case 301: snprintf(message, Config.lcd_cols + 1, " Finished "); |
442 | 172 | break; |
443
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
173 | case 302: snprintf(message, Config.lcd_cols + 1, " Shutting down "); |
6b80a37fdf8d
Added programming display CGRAM. Added display of characters from CGRAM. Changed prompts to allow free prompt strings. More code for the brewsystem unit editor.
Michiel Broek <mbroek@mbse.eu>
parents:
442
diff
changeset
|
174 | break; |
467 | 175 | case 303: snprintf(message, Config.lcd_cols + 1, " Manual HLT "); |
176 | break; | |
177 | case 304: snprintf(message, Config.lcd_cols + 1, " Manual MLT "); | |
178 | break; | |
179 | case 400: if (text == NULL) | |
180 | snprintf(message, Config.lcd_cols + 1, " "); | |
181 | else | |
182 | snprintf(message, Config.lcd_cols + 1, text); | |
442 | 183 | break; |
184 | case 401: snprintf(message, Config.lcd_cols + 1, "--- MAN AUTO SETUP"); | |
185 | break; | |
186 | case 402: snprintf(message, Config.lcd_cols + 1, "--- dwn quit ok "); | |
187 | break; | |
188 | case 403: snprintf(message, Config.lcd_cols + 1, " up dwn quit ok "); | |
189 | break; | |
190 | case 404: snprintf(message, Config.lcd_cols + 1, " up --- quit ok "); | |
191 | break; | |
192 | case 405: snprintf(message, Config.lcd_cols + 1, "--- --- quit ok "); | |
193 | break; | |
194 | case 406: snprintf(message, Config.lcd_cols + 1, "UP* *DWN heat pmp "); | |
195 | break; | |
196 | case 407: snprintf(message, Config.lcd_cols + 1, "--- --- No Yes "); | |
197 | break; | |
198 | case 408: snprintf(message, Config.lcd_cols + 1, "--- --- Ok --- "); | |
199 | break; | |
200 | case 409: snprintf(message, Config.lcd_cols + 1, "UP* *DWN Pause --- "); | |
201 | break; | |
202 | case 410: snprintf(message, Config.lcd_cols + 1, " Continue: Yes No "); | |
203 | break; | |
204 | case 411: snprintf(message, Config.lcd_cols + 1, "UP* *DWN --- pmp "); | |
205 | break; | |
206 | case 412: snprintf(message, Config.lcd_cols + 1, "Up Dwn Exit Ok "); | |
207 | break; | |
451 | 208 | case 413: snprintf(message, Config.lcd_cols + 1, "UP* *DWN heat --- "); |
209 | break; | |
459
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
210 | case 414: snprintf(message, Config.lcd_cols + 1, "add dwn quit ok "); |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
211 | break; |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
212 | case 415: snprintf(message, Config.lcd_cols + 1, "add --- quit ok "); |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
213 | break; |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
214 | case 416: snprintf(message, Config.lcd_cols + 1, "add --- quit --- "); |
1f88be70f253
Added the beginning of the recipes editor. Added load and save of recipes file.
Michiel Broek <mbroek@mbse.eu>
parents:
458
diff
changeset
|
215 | break; |
461
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
216 | case 417: snprintf(message, Config.lcd_cols + 1, " up dwn next ok "); |
482bab226340
Changed some prompt numbers. Added name editor.
Michiel Broek <mbroek@mbse.eu>
parents:
459
diff
changeset
|
217 | break; |
442 | 218 | // 12345678901234567890 |
219 | default: snprintf(message, Config.lcd_cols + 1, " N/A N/A"); | |
220 | } | |
221 | ||
458
43a8ecb53637
Fixes for compiling on Raspberry.
Michiel Broek <mbroek@mbse.eu>
parents:
451
diff
changeset
|
222 | if (idx < 200) |
442 | 223 | line = 0; |
458
43a8ecb53637
Fixes for compiling on Raspberry.
Michiel Broek <mbroek@mbse.eu>
parents:
451
diff
changeset
|
224 | else if (idx < 300) |
442 | 225 | line = 1; |
458
43a8ecb53637
Fixes for compiling on Raspberry.
Michiel Broek <mbroek@mbse.eu>
parents:
451
diff
changeset
|
226 | else if (idx < 400) |
442 | 227 | line = 2; |
228 | else | |
229 | line = 3; | |
230 | ||
231 | fprintf(stdout, "%d %d '%s'\n", line, Config.lcd_cols, message); | |
232 | ||
233 | #ifdef HAVE_WIRINGPI_H | |
234 | piLock(LOCK_LCD); | |
235 | lcdPosition(lcdHandle, 0, line); | |
236 | lcdPuts(lcdHandle, message); | |
237 | ||
238 | #endif | |
239 | slcdPosition(slcdHandle, 0, line); | |
240 | slcdPuts(slcdHandle, message); | |
241 | #ifdef HAVE_WIRINGPI_H | |
242 | piUnlock(LOCK_LCD); | |
243 | #endif | |
244 | } | |
245 | ||
246 |