Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 466:7f4c3b2e6bb7
battery gauge handling
author | heinrichsweikamp |
---|---|
date | Sat, 19 Nov 2016 18:37:47 +0100 |
parents | 025a0ce21f8b |
children | 9edb1359ce43 |
comparison
equal
deleted
inserted
replaced
465:025a0ce21f8b | 466:7f4c3b2e6bb7 |
---|---|
1596 STRCAT_TEXT_PRINT tPercent | 1596 STRCAT_TEXT_PRINT tPercent |
1597 return ; Done. | 1597 return ; Done. |
1598 | 1598 |
1599 global TFT_debug_output | 1599 global TFT_debug_output |
1600 TFT_debug_output: | 1600 TFT_debug_output: |
1601 WIN_TINY .80,.0 | 1601 return |
1602 call TFT_standard_color | 1602 |
1603 lfsr FSR2,buffer | 1603 ; WIN_TINY .80,.0 |
1604 movff analog_sw1,lo | 1604 ; call TFT_standard_color |
1605 output_8 | 1605 ; lfsr FSR2,buffer |
1606 PUTC "," | 1606 ; |
1607 movff analog_sw2,lo | 1607 ; movff battery_acumulated_charge+0,lo |
1608 output_8 | 1608 ; movff battery_acumulated_charge+1,hi |
1609 | 1609 ; output_16 |
1610 STRCAT_PRINT "" | 1610 ; PUTC "," |
1611 ; movff gauge_status_byte,lo | |
1612 ; output_8 | |
1613 ; movff analog_sw1,lo | |
1614 ; output_8 | |
1615 ; PUTC "," | |
1616 ; movff analog_sw2,lo | |
1617 ; output_8 | |
1618 | |
1619 ; STRCAT_PRINT "" | |
1611 return | 1620 return |
1612 | 1621 |
1613 global TFT_divetimeout ; Show timeout counter | 1622 global TFT_divetimeout ; Show timeout counter |
1614 TFT_divetimeout: | 1623 TFT_divetimeout: |
1615 call TFT_warning_set_window ; Sets the row and column for the current warning | 1624 call TFT_warning_set_window ; Sets the row and column for the current warning |