#include <16F877A.h>
#device ADC=10

#FUSES NOWRT                    //Program memory not write protected

#use delay(crystal=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, bits=8, parity=N, stop=1) // Set up UART communication
#define LCD_ENABLE_PIN PIN_D2
#define LCD_RS_PIN PIN_D0
#define LCD_RW_PIN PIN_D1
#define LCD_DATA4 PIN_D3
#define LCD_DATA5 PIN_D4
#define LCD_DATA6 PIN_D5
#define LCD_DATA7 PIN_D6

//Above definitions initialise the LCD 
#include <lcd.c> // Include LCD Library

#define Motor_Ini1   PIN_B1
#define Motor_Ini2   PIN_B2
//Above define the motor relay outputs

#define LED_StartSignal    PIN_B3
#define LED_CoolantConfirmation    PIN_B4
#define LED_Alert    PIN_B5
//Above define the 3 LEDs

#define Engine_Start PIN_C0
#define Coolant_Sensor_Trigger PIN_C1
#define Fan_Activation PIN_C2
#define Reset_Button PIN_C3
//Above definitions for 3 switches (Mimicking Sensors) and Reset Button

