Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/start.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 | 2972a06b0785 |
children | dc349e4264bb |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Tue Dec 07 13:22:17 2010 +0100 +++ b/code_part1/OSTC_code_asm_part1/start.asm Tue Dec 07 22:36:19 2010 +0100 @@ -40,6 +40,12 @@ call disable_rs232 ; disable UART module call RTCinit ; reset RTC +; Extra power-up testing jDG jDG jDG jDG + ifdef TESTING + call test_menus + endif +; DONE jDG jDG jDG jDG + ; Air pressure compensation after reset call get_calibration_data ; Get calibration data from pressure sensor @@ -151,12 +157,9 @@ WIN_LEFT .0 WIN_FONT FT_SMALL WIN_INVERT .0 ; Init new Wordprocessor - movlw 0xFF - movwf oled1_temp - movff oled1_temp,win_color1 - movlw 0xFF - movwf oled1_temp - movff oled1_temp,win_color2 + setf WREG + movff WREG,win_color1 ; Beware: win_color1 is bank0, and we are bank1 currently + movff WREG,win_color2 call I2CReset ; Just in Case any I2C device blocks the Bus movff last_surfpressure_30min+0,last_surfpressure+0 ; Use 30min old airpressure movff last_surfpressure_30min+1,last_surfpressure+1 ; Use 30min old airpressure