Mercurial > public > hwos_code
comparison src/logbook.asm @ 371:fec5eec4c8b7
fix some display issues with display1
author | heinrichsweikamp |
---|---|
date | Wed, 19 Aug 2015 16:27:00 +0200 |
parents | 34e2f5bdc5a2 |
children | f8adb2d5d328 |
comparison
equal
deleted
inserted
replaced
370:67e631aa5b8c | 371:fec5eec4c8b7 |
---|---|
367 | 367 |
368 display_profile_or_exit: | 368 display_profile_or_exit: |
369 movlw logbook_row_number+.2 ; exit? | 369 movlw logbook_row_number+.2 ; exit? |
370 cpfseq menupos | 370 cpfseq menupos |
371 bra display_profile_or_exit2 ; No, check for "Next Page" | 371 bra display_profile_or_exit2 ; No, check for "Next Page" |
372 | |
373 call TFT_DisplayOff | |
374 call TFT_boot | |
375 | |
372 goto do_main_menu2 | 376 goto do_main_menu2 |
373 | 377 |
374 display_profile_or_exit2: | 378 display_profile_or_exit2: |
375 movlw logbook_row_number+.1 ; Next page? | 379 movlw logbook_row_number+.1 ; Next page? |
376 cpfseq menupos | 380 cpfseq menupos |
777 movlw profile_top | 781 movlw profile_top |
778 movwf logbook_min_temp_pos ; Initialize for displaying the lowest temperature | 782 movwf logbook_min_temp_pos ; Initialize for displaying the lowest temperature |
779 movlw profile_top+profile_height_pixels | 783 movlw profile_top+profile_height_pixels |
780 movwf logbook_max_temp_pos ; Initialize for displaying the highest temperature | 784 movwf logbook_max_temp_pos ; Initialize for displaying the highest temperature |
781 | 785 |
782 INIT_PIXEL_WROTE logbook_pixel_x_pos ; pixel x2 (Also sets standard Color!) | 786 movlw profile_left |
787 movff WREG,win_leftx2 | |
788 movlw profile_top | |
789 movff WREG,win_top | |
790 movlw profile_height_pixels | |
791 movff WREG,win_height | |
792 movlw LOW (profile_width_pixels*.2) | |
793 movff WREG,win_width+0 | |
794 movlw HIGH (profile_width_pixels*.2) | |
795 movff WREG,win_width+1 | |
796 call TFT_box_write ; open box for d1 | |
797 | |
798 INIT_PIXEL_WRITE logbook_pixel_x_pos ; pixel x2 (Also sets standard Color!) | |
783 | 799 |
784 profile_display_loop: | 800 profile_display_loop: |
785 movff profile_temp+0,profile_temp2+0 | 801 movff profile_temp+0,profile_temp2+0 |
786 movff profile_temp+1,profile_temp2+1 ; 16Bit x-scaler | 802 movff profile_temp+1,profile_temp2+1 ; 16Bit x-scaler |
787 incf profile_temp2+1,F | 803 incf profile_temp2+1,F |
1381 decf logbook_divenumber,F | 1397 decf logbook_divenumber,F |
1382 bcf all_dives_shown | 1398 bcf all_dives_shown |
1383 clrf menupos3 ; here: used row on current page | 1399 clrf menupos3 ; here: used row on current page |
1384 movlw logbook_row_number | 1400 movlw logbook_row_number |
1385 movwf menupos ; here: active row on current page | 1401 movwf menupos ; here: active row on current page |
1402 call TFT_DisplayOff | |
1403 call TFT_boot | |
1386 clrf CCP1CON ; stop PWM | 1404 clrf CCP1CON ; stop PWM |
1387 bcf PORTC,2 ; Pull PWM out to GND | 1405 bcf PORTC,2 ; Pull PWM out to GND |
1388 call TFT_ClearScreen ; clear details/profile | 1406 call TFT_ClearScreen ; clear details/profile |
1389 goto logbook2 ; start search | 1407 goto logbook2 ; start search |
1390 | 1408 |