comparison src/hwos.inc @ 472:4fdf6886004b

CHANGE: Show warnings either in Customview (If active) _or_ next to warning sign NEW: Show battery type in information menu (T0:1.5V AA, T1:3.6V AA, T2:3.6V/0.8A LiIon, T3:Internal 18650, T4:Internal 16650)
author heinrichsweikamp
date Sun, 18 Dec 2016 18:20:39 +0100
parents 7f4c3b2e6bb7
children 2880aa1264f5
comparison
equal deleted inserted replaced
471:9edb1359ce43 472:4fdf6886004b
184 #DEFINE panasonic_capacity .94 ; 0.8Ah/0.085mAh/100 [%] 184 #DEFINE panasonic_capacity .94 ; 0.8Ah/0.085mAh/100 [%]
185 #DEFINE panasonic_offset .56124 ; 65536-(0.8Ah/0.085mAh) 185 #DEFINE panasonic_offset .56124 ; 65536-(0.8Ah/0.085mAh)
186 186
187 #DEFINE ncr18650_capacity .364 ; 3.1Ah/0.085mAh/100 [%] 187 #DEFINE ncr18650_capacity .364 ; 3.1Ah/0.085mAh/100 [%]
188 #DEFINE ncr18650_offset .29065 ; 65536-(3.1Ah/0.085mAh) 188 #DEFINE ncr18650_offset .29065 ; 65536-(3.1Ah/0.085mAh)
189
190 #DEFINE ur16650_capacity .271 ; 2.3Ah/0.085mAh/100 [%]
191 #DEFINE ur16650_offset .38477 ; 65536-(2.3Ah/0.085mAh)
189 192
190 #DEFINE current_sleepmode .31 193 #DEFINE current_sleepmode .31
191 #DEFINE current_backlight_multi .115 ; *CCPR1L+current_backlight_offset 194 #DEFINE current_backlight_multi .115 ; *CCPR1L+current_backlight_offset
192 #DEFINE current_backlight_offset .216 195 #DEFINE current_backlight_offset .216
193 #DEFINE current_speed_eco .1914 196 #DEFINE current_speed_eco .1914
559 battery_capacity res 2 ; For battery gauge IC 562 battery_capacity res 2 ; For battery gauge IC
560 battery_offset res 2 ; For battery gauge IC 563 battery_offset res 2 ; For battery gauge IC
561 564
562 analog_sw1 res 1 ; analog value for switch 1 565 analog_sw1 res 1 ; analog value for switch 1
563 analog_sw2 res 1 ; analog value for switch 2 566 analog_sw2 res 1 ; analog value for switch 2
564 battery_type res 1 ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah 567 battery_type res 1 ; =0:1.5V, =1:3,6V Saft, =2:LiIon 3,7V/0.8Ah, =3:LiIon 3,7V/3.1Ah, =4: LiIon 3,7V/2.3Ah
565 uptime res 4 ; Uptime [s] 568 uptime res 4 ; Uptime [s]
566 lastdive_time res 4 ; Time since last dive [s] 569 lastdive_time res 4 ; Time since last dive [s]
567 battery_acumulated_charge res 2 ; Raw values in battery gauge IC 570 battery_acumulated_charge res 2 ; Raw values in battery gauge IC
568 gauge_status_byte res 1 ; Gauge IC status byte 571 gauge_status_byte res 1 ; Gauge IC status byte
569 572