Mercurial > public > hwos_code
comparison src/isr.asm @ 31:53a09c1b7410
BUGFIX: alternating brightness at very low ambient light
author | heinrichsweikamp |
---|---|
date | Sun, 21 Jul 2013 18:04:29 +0200 |
parents | bc6d47e801c6 |
children | ec4d8503ec45 |
comparison
equal
deleted
inserted
replaced
30:bc6d47e801c6 | 31:53a09c1b7410 |
---|---|
451 ; dimm down | 451 ; dimm down |
452 decf CCPR1L,F ; -1 | 452 decf CCPR1L,F ; -1 |
453 return | 453 return |
454 isr_dimm_tft2: | 454 isr_dimm_tft2: |
455 movf max_CCPR1L,W | 455 movf max_CCPR1L,W |
456 sublw .20 | 456 sublw ambient_light_min_eco |
457 cpfsgt CCPR1L ; CCPR1L>max_CCPR1L-20? | 457 cpfsgt CCPR1L ; CCPR1L>max_CCPR1L-ambient_light_min_eco? |
458 bra isr_dimm_tft3 ; No, dimm up slow | 458 bra isr_dimm_tft3 ; No, dimm up slow |
459 ; dimm up faster | 459 ; dimm up faster |
460 movlw .5 | 460 movlw .5 |
461 addwf CCPR1L,F | 461 addwf CCPR1L,F |
462 isr_dimm_tft3: | 462 isr_dimm_tft3: |