#define led1  
#define led0  PORTC.0

#define HzOut PORTB.1 
                 
//   4

#define Bu PIND.5
#define Bd PIND.7
#define Be PINB.0
#define Bq PIND.6

/// LCD ports configuration ///
/// Output pins definitions ///

#define RS PORTB.4
#define RW PORTB.5
#define E  PORTB.3

#define D4 2
#define D5 3
#define D6 4
#define D7 5

#define DB4 PORTC.D4
#define DB5 PORTC.D5
#define DB6 PORTC.D6
#define DB7 PORTC.D7
/// Input pins definitions///
/// (bits locations must be the same as outputs) ///
#define DB4I PINC.D4
#define DB5I PINC.D5
#define DB6I PINC.D6
#define DB7I PINC.D7
/// Data directions ///
#define RS_DR DDRB.4
#define RW_DR DDRB.5
#define E_DR  DDRB.3

#define DB4_DR DDRC.D4
#define DB5_DR DDRC.D5
#define DB6_DR DDRC.D6
#define DB7_DR DDRC.D7
///////////////////////

