/*
*****************************************************************************
 *  Brightness control making use of PWM module
 *  Use ILITEK ILI9320 LCD
 *  Hardware TY320T_240320_BO (Rev 2C) stack on PIC24-Eval-B2 Rev A
 *  Brightness control pin EN on LCD module wired to OC2/RD1 pin
 *****************************************************************************
 * FileName:        pwm.h
 * Dependencies:    p24Fxxxx.h
 * Processor:       PIC24FJ128GA010
 * Compiler:       	MPLAB C30
 * Linker:          MPLAB LINK30
 * Company:         TechToys Company
 * Web presence:	www.TechToys.com.hk
 * Date:			15th Jan 2008
 * Version:			1.0a
******************************************************************************
*/

#ifndef _PWM_H
#define _PWM_H

#include <p24Fxxxx.h>

#define OFF				0
#define FULL			1
#define QUARTER 		2
#define HALF			3
#define THREE_QUARTER	4


void pwmSetBrightness(char intensity);
void pwmInit(void);

#endif
