/* mija 2008*.h file for defines lcd.cdata PIN_D0PIN_D1PIN_D2PIN_D3write PIN_Ecommamnd/data PIN_RS!!!!NOTE must be set PIN with PORT and DDR*///*************************************************************#define PIN_D0 PD1#define PORT_D0 PORTD#define DDR_D0 DDRD#define PIN_D1 PD2#define PORT_D1 PORTD#define DDR_D1 DDRD#define PIN_D2 PD0#define PORT_D2 PORTD#define DDR_D2 DDRD#define PIN_D3 PC5#define PORT_D3 PORTC#define DDR_D3 DDRC#define PIN_E PD4#define PORT_E PORTD#define DDR_E DDRD#define PIN_RS PD3#define PORT_RS PORTD#define DDR_RS DDRD//*************************************************************void LCD_init(void);void LCD_putc(uint8_t data);void LCD_gotoxy( uint8_t x, uint8_t y);void LCD_clear(void);void LCD_send_data(uint8_t data);void LCD_send_command(uint8_t data);void LCD_send(uint8_t data);void LCD_send_nibble(uint8_t data);void LCD_init_IO_PIN(void);//*************************************************************//********************** example printf ***********************/*#inlcude <stdio.h>static int put_lcd(char c, FILE *stream);static FILE mystdout = FDEV_SETUP_STREAM(put_lcd, NULL,_FDEV_SETUP_WRITE);static int put_lcd(char c, FILE *stream){switch (c){case '\n': LCD_gotoxy(1,2);break;case '\r': LCD_gotoxy(1,1);break;default : LCD_putc(c);}return 0;}*///*************************************************************