 // lcd.h

#ifndef LCD_H
#define	LCD_H

//define pins
#define E			LATCbits.LATC6	
#define LCD_TRIS_E		TRISCbits.TRISC6
#define RW			LATCbits.LATC5
#define LCD_TRIS_RW		TRISCbits.TRISC5
#define RS			LATCbits.LATC4
#define LCD_TRIS_RS		TRISCbits.TRISC4
#define DATA		LATD

#define _XTAL_FREQ 4000000

//functions
void clkLcd (void);
void setLcd (uint8_t data_Lcd);
void initLcd (void);
void datLcd (char znak);
void posLcd (uint8_t row, uint8_t column);
void writeLcd (char *string);
void clearLcdRow (uint8_t number);
void clearLcd (void);

#endif	/* LCD_H */

