Mercurial > public > mk2
changeset 130:d721b49b8934
Fixed profile view (Logbook)
author | Heinrichsweikamp |
---|---|
date | Tue, 04 Jan 2011 17:41:13 +0100 |
parents | 06c4899ddb4b |
children | 03df42de03e1 |
files | code_part1/OSTC_code_asm_part1/menu_logbook.asm code_part1/OSTC_code_asm_part1/oled_samsung.asm |
diffstat | 2 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_logbook.asm Tue Jan 04 16:32:28 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/menu_logbook.asm Tue Jan 04 17:41:13 2011 +0100 @@ -583,6 +583,7 @@ cpfseq apnoe_mins ; xC+0 = apone_mins? bra profile_display_fill2 ; No! return + profile_display_fill2: movf xC+0,W cpfsgt apnoe_mins ; apnoe_mins>xC+0? @@ -594,6 +595,7 @@ decf xC+1,F movf xC+1,W ; Row call PLED_SetRow ; 0...259 + call PLED_standard_color call PLED_PxlWrite_Single; Write one Pixel @@ -608,6 +610,7 @@ decf xC+1,F movf xC+1,W ; Row call PLED_SetRow ; 0...259 + call PLED_standard_color call PLED_PxlWrite_Single; Write one Pixel
--- a/code_part1/OSTC_code_asm_part1/oled_samsung.asm Tue Jan 04 16:32:28 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/oled_samsung.asm Tue Jan 04 17:41:13 2011 +0100 @@ -57,8 +57,8 @@ ; PLED_SetColumnPixel: ; ----------------------------- PLED_SetColumnPixel: - movwf win_leftx2 ; d'0' ... d'159' - mullw 2 ; Copy to POD, times 2. + movff WREG,win_leftx2 ; d'0' ... d'159' + mullw 2 ; Copy to PROD, times 2. movlw 0x21 ; Start Address Vertical (.0 - .319) rcall PLED_CmdWrite @@ -84,7 +84,9 @@ rcall PLED_PxlWrite_Single ; Write first pixel. ; Write 2nd Pixel on same row but one column to the right - movwf win_leftx2,W ; Increment column address. + movff win_top,WREG + rcall PLED_SetRow ; Re-Set Row + movff win_leftx2,WREG ; Increment column address. mullw 2 incf PRODL clrf WREG ; Does not reset CARRY...