#include <avr/io.h>

#define LCD_Data        PORTE
#define LCD_ControlP	PORTF
#define LCD_DataD		DDRE
#define LCD_ControlPD	DDRF
#define LCD_SetEnable() PORTF |= 16
#define LCD_ClrEnable() PORTF &= ~16
#define LCD_SetData()   PORTF |= 4
#define LCD_SetCommand()PORTF &= ~4
#define LCD_SetRead()   PORTF |= 8;
#define LCD_SetWrite()  PORTF &= ~8;
#define SoundOn()       PORTF |= 32;
#define SoundOff()      PORTF &= ~32;
#define SoundInvert()   PORTF ^= 32;

void LCD_WriteDelay();
void LCD_WriteData(unsigned char co);
void LCD_WriteCommand(unsigned char co);
void LCD_Init();
void LCD_Clear();
void LCD_Position(unsigned char radek, unsigned char sloupec);
void LCD_WriteString(char* retezec);
void LCD_WriteCString(const char* retezec);
void LCD_PrDec(unsigned char co);
void LCD_PrHexByte(unsigned char co);
void LCD_PrHexInt(unsigned int co);
