comparison src/adc_lightsensor.asm @ 136:9a637c9bb19a

rename Deco Planner to Simulator
author heinrichsweikamp
date Thu, 17 Jul 2014 13:29:25 +0200
parents e2f04bb2539c
children 5cb177f0948a
comparison
equal deleted inserted replaced
135:42a2cfc3e85d 136:9a637c9bb19a
272 clrf isr1_temp ; Yes, set temporally to eco mode 272 clrf isr1_temp ; Yes, set temporally to eco mode
273 273
274 incf isr1_temp,F ; adjust 0-2 to 1-3 274 incf isr1_temp,F ; adjust 0-2 to 1-3
275 275
276 banksel common ; flag is in bank1 276 banksel common ; flag is in bank1
277 movlw ambient_light_max_high ; brightest setting 277 movlw ambient_light_max_high_c3; c3 hardware brightest setting
278 btfsc battery_is_36v ; 3,6V battery in use? 278 btfss c3_hardware
279 movlw ambient_light_max_high_36V ; Yes... 279 movlw ambient_light_max_high_15V; 1,5V battery brightest setting
280 btfsc battery_is_36v ; 3,6V battery in use?
281 movlw ambient_light_max_high_36V ; 3,6V battery brightest setting
280 banksel isr_backup ; Back to Bank0 ISR data 282 banksel isr_backup ; Back to Bank0 ISR data
281 283
282 dcfsnz isr1_temp,F 284 dcfsnz isr1_temp,F
283 movlw ambient_light_max_eco ; brightest setting 285 movlw ambient_light_max_eco ; brightest setting
284 dcfsnz isr1_temp,F 286 dcfsnz isr1_temp,F