/*
 * LCD.h
 *
 * Created: 23.4.2013 22:14:06
 *  Author: maticpi
 */ 

#ifndef KBD_H_
#define KBD_H_

#include <avr/io.h>			//header file with register definitions

#define BTN_OK	2
#define BTN_ESC	1
#define BTN_A	3
#define BTN_B	4

void KBD_Init();
void KBD_Read();
char KBD_GetKey();
char KBD_GetReleasedKey();
char KBD_isKeyStatePressed(char key);
char KBD_isKeyStateReleased(char key);
void KBD_flush();

extern char lastkey;
extern char lastreleased;

#endif /* KBD_H_ */