Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 477:44b8a826b314
NEW: Show battery type in surface mode next to battery voltage
author | heinrichsweikamp |
---|---|
date | Mon, 16 Jan 2017 11:59:55 +0100 |
parents | 237afdfb4918 |
children | ad8acade5567 |
comparison
equal
deleted
inserted
replaced
476:7c10557c248e | 477:44b8a826b314 |
---|---|
2408 movff WREG,buffer+4 ; Only "xxx%" | 2408 movff WREG,buffer+4 ; Only "xxx%" |
2409 STRCAT_PRINT "" | 2409 STRCAT_PRINT "" |
2410 bcf win_invert | 2410 bcf win_invert |
2411 call TFT_standard_color | 2411 call TFT_standard_color |
2412 WIN_TINY batt_voltage_column,batt_voltage_row | 2412 WIN_TINY batt_voltage_column,batt_voltage_row |
2413 movff battery_type,lo ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah, =4: LiIon 3,7V/2.3Ah | |
2414 PUTC "T" | |
2415 bsf leftbind | |
2416 output_8 | |
2417 PUTC ":" | |
2413 movff batt_voltage+0,lo | 2418 movff batt_voltage+0,lo |
2414 movff batt_voltage+1,hi | 2419 movff batt_voltage+1,hi |
2415 bsf leftbind | |
2416 output_16dp .2 | 2420 output_16dp .2 |
2417 bcf leftbind | 2421 bcf leftbind |
2418 PUTC 'V' | 2422 PUTC 'V' |
2419 movff buffer+5,buffer+3 | 2423 movff buffer+8,buffer+6 |
2420 movlw 0x00 | 2424 movlw 0x00 |
2421 movff WREG,buffer+4 ; Only "x.yV" | 2425 movff WREG,buffer+7 ; Only "x.yV" |
2422 STRCAT_PRINT "" | 2426 STRCAT_PRINT "" |
2423 return | 2427 return |
2424 | 2428 |
2425 ;update_battery_debug: | 2429 ;update_battery_debug: |
2426 ; call TFT_standard_color | 2430 ; call TFT_standard_color |
2427 ; WIN_TINY .70,.0 | 2431 ; WIN_TINY .70,.0 |