Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/start.asm @ 499:2ac77db9c150
Added OLED brightness setting, texts 280, 312 and 313 need update
author | heinrichsweikamp |
---|---|
date | Tue, 15 Nov 2011 20:36:41 +0100 |
parents | 4b2add2adde3 |
children | 014b2b1e82dc |
comparison
equal
deleted
inserted
replaced
498:4c7f7807b250 | 499:2ac77db9c150 |
---|---|
249 call read_eeprom ; read byte | 249 call read_eeprom ; read byte |
250 movlw 0xAA | 250 movlw 0xAA |
251 cpfseq EEDATA ; is 0xAA already? | 251 cpfseq EEDATA ; is 0xAA already? |
252 call logbook_convert_64k ; No, convert now (And write 0xAA to internal EEPROM 0x100) | 252 call logbook_convert_64k ; No, convert now (And write 0xAA to internal EEPROM 0x100) |
253 | 253 |
254 ; Set OLED brightness flag | |
255 movlw LOW 0x104 | |
256 movwf EEADR | |
257 movlw HIGH 0x104 | |
258 movwf EEADRH ; OLED brightness (=0: Eco, =1: High) | |
259 call read_eeprom ; read byte | |
260 bcf oled_brightness_high ; Eco mode | |
261 movlw .0 | |
262 cpfseq EEDATA ; High? | |
263 bsf oled_brightness_high ; Yes! | |
264 | |
265 clrf EEADRH ; Reset EEADRH | |
254 goto surfloop ; Jump to Surfaceloop! | 266 goto surfloop ; Jump to Surfaceloop! |
255 | 267 |
256 | 268 |
257 display_new_cf_installed: | 269 display_new_cf_installed: |
258 call PLED_new_cf_warning ; Display new CF warning screen | 270 call PLED_new_cf_warning ; Display new CF warning screen |