comparison src/start.asm @ 475:237afdfb4918

2.12 release candidate... buttons invertable via PC command (OSTC+ only)
author heinrichsweikamp
date Fri, 13 Jan 2017 13:08:17 +0100
parents 2880aa1264f5
children ad8acade5567
comparison
equal deleted inserted replaced
474:2880aa1264f5 475:237afdfb4918
64 movwf TBLPTRU 64 movwf TBLPTRU
65 TBLRD*+ ; Reads 0x07 for analog buttons 65 TBLRD*+ ; Reads 0x07 for analog buttons
66 movlw 0x07 66 movlw 0x07
67 cpfseq TABLAT 67 cpfseq TABLAT
68 bcf analog_switches 68 bcf analog_switches
69 69
70 ; read button polarity
71 movlw LOW .897
72 movwf EEADR
73 movlw HIGH .897
74 movwf EEADRH
75 call read_eeprom ; EEDATA into EEPROM@EEADR
76 clrf EEADRH ; Reset EEADRH
77 movff EEDATA,button_polarity ; 0xFF (Both normal), 0x00 (Both inverted), 0x01 (Left inverted only), 0x02 (Right inverted only)
78
70 ; Air pressure compensation after reset 79 ; Air pressure compensation after reset
71 call get_calibration_data ; Get calibration data from pressure sensor 80 call get_calibration_data ; Get calibration data from pressure sensor
72 banksel common ; get_calibration_data uses isr_backup 81 banksel common ; get_calibration_data uses isr_backup
73 82
74 call TFT_DisplayOff ; display off 83 call TFT_DisplayOff ; display off