Rev 812 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 812 | Rev 1018 | ||
|---|---|---|---|
| Line 164... | Line 164... | ||
| 164 | 164 | ||
| 165 | glcdSetXY(0,0); |
165 | glcdSetXY(0,0); |
| 166 | glcdSetXY(0,0); |
166 | glcdSetXY(0,0); |
| 167 | glcdSetXY(0,0); |
167 | glcdSetXY(0,0); |
| 168 | 168 | ||
| 169 | //glcdPutStr("This is a test....... Let us try another row.. And another.. And some more.."); |
169 | //glcdPutStr("This is a test....... Let us try another row.. And another.. And some more..",1); |
| 170 | 170 | ||
| 171 | for (jxa = 0; jxa< 8; jxa++){ |
171 | for (jxa = 0; jxa< 8; jxa++){ |
| 172 | glcdSetXY(0,jxa); |
172 | glcdSetXY(0,jxa); |
| 173 | for (ixa = 0; ixa < 128; ixa++){ |
173 | for (ixa = 0; ixa < 128; ixa++){ |
| 174 | glcdWriteData((uint8_t)pgm_read_byte((uint16_t)&Splash_left+ixa+jxa*128)); |
174 | glcdWriteData((uint8_t)pgm_read_byte((uint16_t)&Splash_left+ixa+jxa*128),1); |
| 175 | } |
175 | } |
| 176 | } |
176 | } |
| 177 | 177 | ||
| 178 | 178 | ||
| 179 | 179 | ||
| 180 | //glcdSetXY(0,0); |
180 | //glcdSetXY(0,0); |
| 181 | //glcdPutStr("I can write text. This is cool. Yeah baby! Pixelina!"); |
181 | //glcdPutStr("I can write text. This is cool. Yeah baby! Pixelina!"); |
| 182 | 182 | ||
| 183 | /*glcdSetXY(5,5); |
183 | /*glcdSetXY(5,5); |
| 184 | glcdPutStr("I can write text."); |
184 | glcdPutStr("I can write text.",1); |
| 185 | glcdSetXY(8,10); |
185 | glcdSetXY(8,10); |
| 186 | glcdPutStr("Everywhere!"); |
186 | glcdPutStr("Everywhere!",1); |
| 187 | */ |
187 | */ |
| 188 | 188 | ||
| 189 | 189 | ||
| 190 | 190 | ||
| 191 | while (1) { |
191 | while (1) { |
| Line 204... | Line 204... | ||
| 204 | case SNS_TYPE_TEMPERATURE: |
204 | case SNS_TYPE_TEMPERATURE: |
| 205 | sensor_Temperature = rxMsg.Data.words[0]; |
205 | sensor_Temperature = rxMsg.Data.words[0]; |
| 206 | for (jxa = 0; jxa< 8; jxa++){ |
206 | for (jxa = 0; jxa< 8; jxa++){ |
| 207 | glcdSetXY(0,jxa); |
207 | glcdSetXY(0,jxa); |
| 208 | for (ixa = 0; ixa < 128; ixa++){ |
208 | for (ixa = 0; ixa < 128; ixa++){ |
| - | 209 | ||
| 209 |
|
210 | glcdWriteData((uint8_t)pgm_read_byte((uint16_t)&Splash_left+ixa+jxa*128),1); |
| 210 | } |
211 | } |
| 211 | } |
212 | } |
| 212 | 213 | ||
| 213 | 214 | ||
| 214 | 215 | ||
| Line 216... | Line 217... | ||
| 216 | 217 | ||
| 217 | unsignedtoascii(sensor_Temperature,SNS_DECPOINT_TEMPERATURE,buffer,1); |
218 | unsignedtoascii(sensor_Temperature,SNS_DECPOINT_TEMPERATURE,buffer,1); |
| 218 | 219 | ||
| 219 | if (rxMsg.Id == 0x040a0413){ |
220 | if (rxMsg.Id == 0x040a0413){ |
| 220 | glcdSetXY(78,1); |
221 | glcdSetXY(78,1); |
| 221 | glcdPutStr("UT:"); |
222 | glcdPutStr("UT:",1); |
| 222 | glcdPutStr(buffer); |
223 | glcdPutStr(buffer,1); |
| 223 | //glcdPutStr("C"); |
224 | //glcdPutStr("C",1); |
| 224 | } else if (rxMsg.Id == 0x040a0213) { |
225 | } else if (rxMsg.Id == 0x040a0213) { |
| 225 | glcdSetXY(78,2); |
226 | glcdSetXY(78,2); |
| 226 | glcdPutStr("IN:"); |
227 | glcdPutStr("IN:",1); |
| 227 | glcdPutStr(buffer); |
228 | glcdPutStr(buffer,1); |
| 228 | //glcdPutStr("C"); |
229 | //glcdPutStr("C",1); |
| 229 | } else if (rxMsg.Id == 0x040a0211) { |
230 | } else if (rxMsg.Id == 0x040a0211) { |
| 230 | glcdSetXY(78,3); |
231 | glcdSetXY(78,3); |
| 231 | glcdPutStr("TV:"); |
232 | glcdPutStr("TV:",1); |
| 232 | glcdPutStr(buffer); |
233 | glcdPutStr(buffer,1); |
| 233 | //glcdPutStr("C"); |
234 | //glcdPutStr("C",1); |
| 234 | } |
235 | } |
| 235 | 236 | ||
| 236 | break; |
237 | break; |
| 237 | } |
238 | } |
| 238 | } |
239 | } |