
#ifndef _buttons_H_

#define _buttons_H_

#include <system.h>  // necessary to use C functions

volatile bit LED4@LATD.1;
volatile bit LED3@LATD.2;
volatile bit LED2@LATD.3;
volatile bit LED1@LATD.4;
volatile bit LED0@LATD.5;

void init_buttons(void);
char check_topbuttons(void);
char check_bottombuttons(void);

void init_led(void);
void display_led(void);
void set_led(unsigned short data);

char check_switches(void);

#endif // Leave this at the end of the header