# 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

- `pwm_backlight_init()`
- `lcd_backlight(bit in onoff)`
- `lcd_backlight_variable(byte in value)`

### Functions

## API details

### Global variables/contants

### Procedures

- `pwm_backlight_init()`

      pwm_backlight_init - init backlight functions

- `lcd_backlight(bit in onoff)`

      lcd_backlight - turn backlite on/off

- `lcd_backlight_variable(byte in value)`

      lcd_backlight_variable - set backlight level (0 =off, 255 = max on)

### Functions

## Related samples

Here are the list of samples which use this library:

16f648a | 16f648a_backlight.jal
16f877 | 16f877_backlight.jal
16f877a | 16f877a_backlight.jal
16f88 | 16f88_backlight.jal
18f452 | 18f452_backlight.jal