comparison code_part1/OSTC_code_asm_part1/aa_tests.asm @ 83:3e351e25f5d1

adding anti-aliased fonts frame and merging some patches from Jeando
author heinrichsweikamp
date Tue, 07 Dec 2010 22:36:19 +0100
parents
children
comparison
equal deleted inserted replaced
82:bc3092c41335 83:3e351e25f5d1
1 ;=============================================================================
2 ;
3 ; file aa_tests.asm
4 ; brief Draw various OSTC MK2 menus.
5 ; author JD Gascuel.
6 ;
7 ; copyright (c) 2010, JD Gascuel. All rights reserved.
8 ; $Id$
9 ;=============================================================================
10 ; HISTORY
11 ; 2010-11-29 : [jDG] Reset, for TESTING=1 mode...
12 ;
13 ; BUGS:
14 ;
15
16 battery_eedata:
17 DB 0xB8, 0x0B, .12, .31, .10, 0xB4, 0x01, .12
18 DB .31, .10, 0x2C, 0x01, 0x96, 0x00, 0x00, 0x00
19 DB .12, .31, .10, 0xE7, 0x03, .12, .31, .10
20 battery_eedata_end:
21
22 ;=========================================================================
23
24 test_menus:
25 call PLED_confirmbox
26 movwf WREG ; NOP, but set Z
27 bz skip_fonts
28 call test_printf
29 rcall wait_page
30
31 skip_fonts:
32 movlw 0xFC ; Reset ambiant pres to 1015 mBar
33 movwf D1+0
34 movlw 0x21
35 movwf D1+1
36 movff D1+0, amb_pressure+0
37 movff D1+1, amb_pressure+1
38
39 movlw 0x48 ; Reset temperature ~ 19°C
40 movwf D2
41 movlw 0x26
42 movwf D2+1
43
44 call do_menu_reset_all2 ; Force reset all CFxx
45
46 return
47
48 ;=========================================================================
49
50 wait_page:
51 bcf switch_left
52 bcf switch_right
53
54 wait_page_loop:
55 bsf LED_red ; Set it many times, better for OLEDSim...
56 bsf LED_blue
57
58 WAITMS .250
59 WAITMS .250
60 btfsc switch_right
61 bra wait_page_done
62
63 WAITMS .250
64 WAITMS .250
65 btfss switch_left
66 bra wait_page_loop
67
68 wait_page_done:
69 bcf LED_red
70 bcf LED_blue
71
72 bcf switch_left
73 bcf switch_right
74 goto PLED_ClearScreen
75