Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu.asm @ 432:efe06a146773
Added Screen test sequence (raw data menu).
author | JeanDo |
---|---|
date | Fri, 05 Aug 2011 05:52:01 +0200 |
parents | 6bdf80d7276c |
children | f6cdd0079c36 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu.asm Thu Aug 04 21:50:02 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu.asm Fri Aug 05 05:52:01 2011 +0200 @@ -419,14 +419,31 @@ call PLED_static_raw_data + clrf timeout_counter2 bcf sleepmode - bcf menubit2 bcf menubit3 bsf menubit + +show_rawdata_loop: + rcall show_rawdata_wait + + btfsc menubit2 + bra show_rawdata_next + + btfsc onesecupdate + call PLED_update_raw_data + + bcf onesecupdate ; End of one second tasks, if any. + + goto show_rawdata_loop + +show_rawdata_wait: + bcf menubit2 bcf switch_left bcf switch_right -show_rawdata_loop: + +show_rawdata_wait_1: btfsc uart_dump_screen ; Asked to dump screen contains ? call dump_screen ; Yes! @@ -436,7 +453,7 @@ bsf menubit2 btfsc menubit2 - bra show_rawdata_exit + return btfss menubit goto restart ; exit menu, restart and enter surfmode @@ -445,20 +462,43 @@ call timeout_surfmode btfsc onesecupdate - call PLED_update_raw_data - - btfsc onesecupdate call set_dive_modes - bcf onesecupdate ; End of one second tasks - btfsc sleepmode bra show_rawdata_exit ; Exit btfsc divemode goto restart ; exit menu, restart and enter divemode - bra show_rawdata_loop + btfsc onesecupdate + return + + bra show_rawdata_wait_1 + +; Display blank/red/green/blue screens until click, to test OLED ageing. +show_rawdata_next: + setf WREG + WIN_BOX_COLOR .0,.240,.0,.160 + rcall show_rawdata_screen_wait + movlw color_red + WIN_BOX_COLOR .0,.240,.0,.160 + rcall show_rawdata_screen_wait + movlw color_green + WIN_BOX_COLOR .0,.240,.0,.160 + rcall show_rawdata_screen_wait + movlw color_blue + WIN_BOX_COLOR .0,.240,.0,.160 + rcall show_rawdata_screen_wait + bra show_rawdata_exit + +show_rawdata_screen_wait: + rcall show_rawdata_wait + bcf onesecupdate ; No dynamic update here... + + btfsc menubit2 + return + + bra show_rawdata_screen_wait show_rawdata_exit: movlw d'4'