Mercurial > public > hwos_code
comparison src/customview.asm @ 256:5b4ef0b9090d
place compass display code into compass_ops.asm
author | heinrichsweikamp |
---|---|
date | Mon, 23 Mar 2015 18:02:40 +0100 |
parents | 5fe7aff622f3 |
children | 653a3ab08062 |
comparison
equal
deleted
inserted
replaced
255:ad62dff7739a | 256:5b4ef0b9090d |
---|---|
220 bra customview_toggle_exit ; Done. | 220 bra customview_toggle_exit ; Done. |
221 | 221 |
222 surf_customview_init_view6: ; View6: Compass | 222 surf_customview_init_view6: ; View6: Compass |
223 call I2C_init_accelerometer ; Start accelerometer | 223 call I2C_init_accelerometer ; Start accelerometer |
224 call I2C_init_compass ; Start compass | 224 call I2C_init_compass ; Start compass |
225 extern TFT_surface_compass_mask | |
225 call TFT_surface_compass_mask ; Show compass | 226 call TFT_surface_compass_mask ; Show compass |
226 bra customview_toggle_exit ; Done. | 227 bra customview_toggle_exit ; Done. |
227 surf_customview_init_view7: | 228 surf_customview_init_view7: |
228 btfsc FLAG_gauge_mode | 229 btfsc FLAG_gauge_mode |
229 bra surf_customview_toggle | 230 bra surf_customview_toggle |
442 bra customview_toggle_exit | 443 bra customview_toggle_exit |
443 | 444 |
444 customview_init_view6: ; Compass (View 6) | 445 customview_init_view6: ; Compass (View 6) |
445 call I2C_init_accelerometer ; Start accelerometer | 446 call I2C_init_accelerometer ; Start accelerometer |
446 call I2C_init_compass ; Start compass | 447 call I2C_init_compass ; Start compass |
448 extern TFT_dive_compass_mask | |
447 call TFT_dive_compass_mask ; Show compass | 449 call TFT_dive_compass_mask ; Show compass |
448 bra customview_toggle_exit | 450 bra customview_toggle_exit |
449 | 451 |
450 customview_init_view7: ; Dynamic gaslist (View 7) | 452 customview_init_view7: ; Dynamic gaslist (View 7) |
451 btfsc FLAG_apnoe_mode ; In Apnoe mode? | 453 btfsc FLAG_apnoe_mode ; In Apnoe mode? |