# HG changeset patch # User Heinrichsweikamp # Date 1294159273 -3600 # Node ID d721b49b8934b8090606547e360ff6bfb20cee04 # Parent 06c4899ddb4bdac86fb2f5f147d0870007865e65 Fixed profile view (Logbook) diff -r 06c4899ddb4b -r d721b49b8934 code_part1/OSTC_code_asm_part1/menu_logbook.asm --- 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 diff -r 06c4899ddb4b -r d721b49b8934 code_part1/OSTC_code_asm_part1/oled_samsung.asm --- 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...