Mercurial > public > hwos_code
comparison src/tft_outputs.asm @ 31:53a09c1b7410
BUGFIX: alternating brightness at very low ambient light
author | heinrichsweikamp |
---|---|
date | Sun, 21 Jul 2013 18:04:29 +0200 |
parents | 50c3e2c7ba7a |
children | 64976f1e0a1c |
comparison
equal
deleted
inserted
replaced
30:bc6d47e801c6 | 31:53a09c1b7410 |
---|---|
915 STRCAT_PRINT " " | 915 STRCAT_PRINT " " |
916 return | 916 return |
917 | 917 |
918 global TFT_update_raw_data | 918 global TFT_update_raw_data |
919 TFT_update_raw_data: | 919 TFT_update_raw_data: |
920 call TFT_standard_color | |
920 WIN_TINY .0,.0 | 921 WIN_TINY .0,.0 |
921 STRCPY "pres:" | 922 STRCPY "pres:" |
922 SAFE_2BYTE_COPY amb_pressure, lo | 923 SAFE_2BYTE_COPY amb_pressure, lo |
924 movlw .5 ;>1280mbar | |
925 cpfslt hi | |
926 call TFT_warnings_color | |
923 bsf leftbind | 927 bsf leftbind |
924 output_16 | 928 output_16 |
925 STRCAT_PRINT "mbar " | 929 STRCAT_PRINT "mbar " |
926 WIN_TINY .80,.0 | 930 WIN_TINY .80,.0 |
927 STRCPY "temp:" | 931 STRCPY "temp:" |
930 movlw d'3' | 934 movlw d'3' |
931 movwf ignore_digits | 935 movwf ignore_digits |
932 output_16dp d'2' ; temperature | 936 output_16dp d'2' ; temperature |
933 STRCAT_PRINT "°C " | 937 STRCAT_PRINT "°C " |
934 | 938 |
939 call TFT_standard_color | |
935 call get_battery_voltage ; get battery voltage | 940 call get_battery_voltage ; get battery voltage |
936 WIN_TINY .0,.18 | 941 WIN_TINY .0,.18 |
937 STRCPY "AN06:" | 942 STRCPY "AN06:" |
938 movff ADRESL,lo | 943 movff ADRESL,lo |
939 movff ADRESH,hi | 944 movff ADRESH,hi |