Mercurial > public > hwos_code
comparison src/surfmode.asm @ 245:416723c8ccd8
use single-byte hardware flag (again)
author | heinrichsweikamp |
---|---|
date | Wed, 04 Mar 2015 19:01:57 +0100 |
parents | 23311219dacc |
children | 5b4ef0b9090d |
comparison
equal
deleted
inserted
replaced
244:db75dbeef5ed | 245:416723c8ccd8 |
---|---|
44 global surfloop | 44 global surfloop |
45 surfloop: | 45 surfloop: |
46 call speed_normal | 46 call speed_normal |
47 bcf no_sensor_int ; Normal pressure mode | 47 bcf no_sensor_int ; Normal pressure mode |
48 | 48 |
49 bcf LEDg | |
50 bcf LEDr | |
51 | |
49 clrf CCP1CON ; stop PWM | 52 clrf CCP1CON ; stop PWM |
50 bcf PORTC,2 ; Pull PWM output to GND | 53 bcf PORTC,2 ; Pull PWM output to GND |
51 call TFT_boot ; Initialize TFT (includes clear screen) | 54 call TFT_boot ; Initialize TFT (includes clear screen) |
52 bcf restore_deco_data | 55 bcf restore_deco_data |
53 | 56 |
96 bcf ccr_diluent_setup ; Use OC gases for gaslist routine | 99 bcf ccr_diluent_setup ; Use OC gases for gaslist routine |
97 | 100 |
98 bcf simulatormode_active ; Quit simulator mode (if active) | 101 bcf simulatormode_active ; Quit simulator mode (if active) |
99 bcf switch_left | 102 bcf switch_left |
100 bcf switch_right | 103 bcf switch_right |
101 bcf LEDg | |
102 bcf LEDr | |
103 | 104 |
104 ;---- Fade to standard surface view -------------------------------------- | 105 ;---- Fade to standard surface view -------------------------------------- |
105 ; Wait 1 second | 106 ; Wait 1 second |
106 bcf onesecupdate | 107 bcf onesecupdate |
107 btfss onesecupdate | 108 btfss onesecupdate |