Mercurial > public > ostc4
comparison Discovery/Src/t6_apnea.c @ 160:e3ca52b8e7fa
Merge with FlipDisplay
author | heinrichsweikamp |
---|---|
date | Thu, 07 Mar 2019 15:06:43 +0100 |
parents | cc9c18075e00 |
children | 255eedad4155 |
comparison
equal
deleted
inserted
replaced
80:cc2bb7bb8456 | 160:e3ca52b8e7fa |
---|---|
306 | 306 |
307 GFX_write_string(&Batt24,&t6c1,TextC1,0); | 307 GFX_write_string(&Batt24,&t6c1,TextC1,0); |
308 } | 308 } |
309 | 309 |
310 | 310 |
311 void t6_battery_scooter_customview_extra(void) | |
312 { | |
313 char TextC1[256]; | |
314 | |
315 TextC1[0] = '\001'; | |
316 TextC1[1] = '\f'; | |
317 TextC1[2] = '\032'; | |
318 TextC1[3] = '3'; | |
319 TextC1[4] = '1'; | |
320 TextC1[5] = '1'; | |
321 TextC1[6] = '1'; | |
322 TextC1[7] = '1'; | |
323 TextC1[8] = '1'; | |
324 TextC1[9] = '1'; | |
325 TextC1[10] = '1'; | |
326 TextC1[11] = '1'; | |
327 TextC1[12] = '1'; | |
328 TextC1[13] = '1'; | |
329 TextC1[14] = '0'; | |
330 TextC1[15] = 0; | |
331 | |
332 for(int i=1;i<=10;i++) | |
333 { | |
334 if( stateUsed_scooterRemainingBattCapacity() > (9 * i)) | |
335 TextC1[i+3] += 1; | |
336 } | |
337 | |
338 if(stateUsed_scooterRemainingBattCapacity() < 10) | |
339 TextC1[2] = '\025'; | |
340 | |
341 if(!warning_count_high_time) | |
342 TextC1[4] = '2'; | |
343 | |
344 if(stateUsed->lifeData.scooterAgeInMilliSeconds > 1500) | |
345 TextC1[2] = '\031'; | |
346 | |
347 GFX_write_string(&Batt24,&t6c1,TextC1,0); | |
348 } | |
349 | |
350 | 311 |
351 void t6_change_customview(void) | 312 void t6_change_customview(void) |
352 { | 313 { |
353 t3_basics_change_customview(&t6_selection_customview, t6_customviews); | 314 t3_basics_change_customview(&t6_selection_customview, t6_customviews); |
354 } | 315 } |