comparison code_part1/OSTC_code_asm_part1/pled_outputs.asm @ 283:4ec488f046f4

Battery sign color coded, work on new uart-started 115200Baud bootloader (Do NOT use yet!)
author heinrichsweikamp
date Tue, 19 Apr 2011 19:31:16 +0200
parents f8f865c70a0d
children 8874b6cd8f36
comparison
equal deleted inserted replaced
282:aa4b62840c69 283:4ec488f046f4
1852 update_batt_voltage2a: 1852 update_batt_voltage2a:
1853 WIN_BOX_STD .181, .187, .32, .34 1853 WIN_BOX_STD .181, .187, .32, .34
1854 1854
1855 update_batt_voltage3: 1855 update_batt_voltage3:
1856 GETCUSTOM8 d'34' ; Color battery 1856 GETCUSTOM8 d'34' ; Color battery
1857 btfsc cc_active
1858 movlw color_yellow ; CC active
1859 btfsc cv_active
1860 movlw color_green ; CV active
1857 call PLED_set_color 1861 call PLED_set_color
1858 1862
1859 movlw .176 1863 movlw .175
1860 movff WREG,win_top ; row top (0-239) 1864 movff WREG,win_top ; row top (0-239)
1861 movlw .192-.176 1865 movlw .192-.175
1862 movff WREG,win_height ; row bottom (0-239) 1866 movff WREG,win_height ; row bottom (0-239)
1863 movlw .2 1867 movlw .2
1864 movff WREG,win_leftx2 ; column left (0-159) 1868 movff WREG,win_leftx2 ; column left (0-159)
1865 movff wait_temp,win_width ; column right (0-159) 1869 movff wait_temp,win_width ; column right (0-159)
1866 call PLED_box 1870 call PLED_box
1867
1868 call PLED_standard_color 1871 call PLED_standard_color
1869 return 1872 return
1870 1873
1871 update_batt_voltage2_empty: 1874 update_batt_voltage2_empty:
1872 movlw d'1' 1875 movlw d'1'