# HG changeset patch # User heinrichsweikamp # Date 1321441041 -3600 # Node ID 014b2b1e82dcc029aa4480a01d5dd62dcdbf5a0f # Parent 2ac77db9c150de8c0ef29fdbe2e7b78b9391cf0a Reset Brightness after firmware update diff -r 2ac77db9c150 -r 014b2b1e82dc code_part1/OSTC_code_asm_part1/changelog.txt --- a/code_part1/OSTC_code_asm_part1/changelog.txt Tue Nov 15 20:36:41 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/changelog.txt Wed Nov 16 11:57:21 2011 +0100 @@ -1,6 +1,7 @@ New in 2.05 beta: BETA Version - Do NOT use for diving! BUGFIX: German text layout in Divemode +NEW: OLED Brightness setting New in 2.04 beta: BETA Version - Do NOT use for diving! diff -r 2ac77db9c150 -r 014b2b1e82dc code_part1/OSTC_code_asm_part1/start.asm --- a/code_part1/OSTC_code_asm_part1/start.asm Tue Nov 15 20:36:41 2011 +0100 +++ b/code_part1/OSTC_code_asm_part1/start.asm Wed Nov 16 11:57:21 2011 +0100 @@ -133,17 +133,16 @@ call write_eeprom ; write version y clrf EEADRH ; Reset EEADRH -; Reset CF48 -; movlw d'1' -; movwf EEADRH ; EEPROM Bank1 -; clrf EEDATA ; =0 -; write_int_eeprom d'191' -; write_int_eeprom d'192' -; write_int_eeprom d'193' -; write_int_eeprom d'194' ; Reset Default and Current Value to zero -; clrf EEADRH -; -; goto reset_all_cf ; resets all custom functions bank0 and bank1 and jumps to "restart" +; After update resets + ; Reset brightness to ECO + movlw LOW 0x104 + movwf EEADR + movlw HIGH 0x104 + movwf EEADRH ; OLED brightness (=0: Eco, =1: High) + movlw .0 + movwf EEDATA + call write_eeprom ; write byte + clrf EEADRH ; Reset EEADRH restart: movlw b'00000011'