;*** SCT. Show Current Temperature instead of time or date v0.61***

;Firmware : S-ME45i v04
;Authors: rc-flitzer, trustkill, dp_sun, Lalo
;Release: July 28, 2004
;Updated: August 21, 2004
;v0.1: show temperature
;v0.2: show temperature if keylocked
;v0.3: show temperature if keylocked selectable through menu application
;v0.4: show temp instead time or instead of date
;v0.5: show + or - degree
;v0.6: add "C", add customization option, no used ¿ character, saved space - (hope) final version
;v0.61: space saved

;This patch shows temperature instead of time or date
;in idle screen if autodisplay voice in clock menu is setted,
;according to keyboard state and selectable through Riza's New Application Menu patch.


0x560531: C6743A 8730CE ;temp instead time

0x07CE30: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 9A0906A0D7404200F2F43C3F8AF40270
0x07CE40: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FAC6743ADACABCACDACD5414E6F1952B
0x07CE50: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 26F4AA0A9D02E6F1952DDC49B8180882
0x07CE60: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF E6FE0A00F6F40EFE5BEEF2F60EFEF2F7
0x07CE70: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0CFEE7F23000F0C6BB0FE7F22C00F0C7
0x07CE80: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF BB0BE6F19543E6F29630DC59B828C418
0x07CE90: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 02000884FAC6E23ADC49B928DC47DACB
0x07CEA0: FFFFFFFFFFFFFFFFFFFF D01FDAFFC03F0882CB00



;CUSTOMIZATION:
;-----------------
;Instead of what show temperature:
;default=instead of time
;uncomment these lines if you want to have it instead of date:
;0x560507: C66439 8730CE
;0x07CE42: 743A 6439
;0x560531: 8730CE C6743A

;When show temperature:
;default = if keyboard locked
;0x07CE30: 9A 8A ; if keyboard unlocked
;0x07CE30: 9A09 0D01 ;not keybord state dipendent

;Selection throught application menu (you must have NAM patch applied):
;default = voice number 8 (temperature)
;change voice 8 name from "empty" to "temperature" (uncomment)
;0x07CAF2: 2203 2B06
;change voice number:
;0x07CE3F: 70 x0
;where x is function number -1
;e.g.: 4 = voice n.5 (clock) = shows temp. if digiclock is on

;Fine tuning of temperature sensor:
;0x07CE52: AA xx
;where xx = AA +(-) difference between phone and real temperature x10 in hex
;e.g.: phone temp=25,6°C real temp=22,3°C
;25,6-22,3 = 3,3°C
;x10 = 33
;33decimal = 21hex
;AA+21 = CB
;correcting patch:
;0x07CE52: AA CB ;reduce sensor value of 3,3°C
;(method by chyberghost)

;Remove leading + or - sign (uncomment):
;07CE5A: DC49 0D02

raw only - sign (uncomment):
;07CE55: 02 05

;Remove leading 0 in 00-09°C (uncomment):
;07CE74: 30 91

;Remove ending C (uncomment)
;07CE84: 9543 0000