comparison src/tft.asm @ 640:8c1f1f334275

3.13 release
author heinrichsweikamp
date Thu, 29 Oct 2020 09:29:15 +0100
parents 2737ddc643bb
children 070528a88715
comparison
equal deleted inserted replaced
639:0ff82370991d 640:8c1f1f334275
229 bcf PORTC,2 ; - pull PWM out to GND 229 bcf PORTC,2 ; - pull PWM out to GND
230 clrf PORTA 230 clrf PORTA
231 clrf PORTH 231 clrf PORTH
232 RD_L ; LOW 232 RD_L ; LOW
233 RS_L ; LOW 233 RS_L ; LOW
234 bcf tft_nwr 234 WR_L
235 bcf tft_cs 235 NCS_L
236 bcf tft_nreset 236 bcf tft_nreset
237 bsf tft_power ; inverted... 237 bsf tft_power ; inverted...
238 return 238 return
239 239
240 TFT_DisplayOff_display3: 240 TFT_DisplayOff_display3:
548 global TFT_Display_FadeOut 548 global TFT_Display_FadeOut
549 TFT_Display_FadeOut: 549 TFT_Display_FadeOut:
550 movff max_CCPR1L,PRODL 550 movff max_CCPR1L,PRODL
551 bsf tft_is_dimming ; TFT is dimming, ignore ambient sensor 551 bsf tft_is_dimming ; TFT is dimming, ignore ambient sensor
552 btfsc screen_type3 552 btfsc screen_type3
553 bra TFT_Display_FadeOut_1 553 return ; Do not fade out screen type 3
554 TFT_Display_FadeOut_0: 554 TFT_Display_FadeOut_0:
555 movff PRODL,CCPR1L ; duty cycle 555 movff PRODL,CCPR1L ; duty cycle
556 WAITMS d'1' 556 WAITMS d'1'
557 decfsz PRODL,F 557 decfsz PRODL,F
558 bra TFT_Display_FadeOut_0 558 bra TFT_Display_FadeOut_0