comparison Discovery/Src/t6_apnea.c @ 138:cc9c18075e00 FlipDisplay

Removed no longer supported scooter code
author Ideenmodellierer
date Sat, 23 Feb 2019 21:10:51 +0100
parents 5f11787b4f42
children 255eedad4155
comparison
equal deleted inserted replaced
137:9eda5a75c5fd 138:cc9c18075e00
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 }