lcd_backlight

lcd_backlight.jal

Author Joep Suijs, Copyright © 2009, all rights reserved.
Adapted-by
Compiler >=2.4g

Description

Provides standard interface to backlight of (directly connected) lcd.    
First, setup the pin for the backlight:
   var volatile bit lcd_bl is pin_b0
   pin_b0_direction = output              



If the backlight line is inverted (that is low output turn the backlight on),
you must define:
   const bit lcd_bl_inverted = true



If you want digital backlight (on or off), then you can include this library.
But if you want variable backlight (256 steps from off to on), the pin above 
must be a pwm (ccp) output pin. And you have to tell the library, which pwm:
   const byte lcd_backlight_pwm = 1                                        



now include the library & init it:
   include lcd_backlight
   pwm_backlight_init()        


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions


Related samples

Here are the list of samples which use this library:

16f648a16f648a_backlight.jal
16f87716f877_backlight.jal
16f877a16f877a_backlight.jal
16f8816f88_backlight.jal
18f45218f452_backlight.jal