Driver/XLCD/xlcd.c:139: error: (1098) conflicting declarations for variable "comandXLCD" (Driver/XLCD/xlcd.c:139)
void DelayFor18TCY(void){ //Donde se ajusta la velocidad de muestreo
Delay10TCYx(120);
}
void DelayPORXLCD(void){ //Delay de 15ms
Delay1KTCYx(180);
}
void DelayXLCD(void){ //Delay de 5ms
Delay1KTCYx(60);
}
void LcdInit(void) {
OpenXLCD(FOUR_BIT & LINES_5X7); //Configuramos el lcd como de 4 hilos
while( BusyXLCD() ); //wait untill LCD controller is busy
comandXLCD(DON | CURSOR_OFF | BLINK_OFF ); //Display ON, Cursor Off, Blink Off
while( BusyXLCD() ); //wait untill LCD controller is busy
// comandXLCD(INCREMENT);
while( BusyXLCD() ); //wait untill LCD controller is busy
}
void comandXLCD(uint8_t a){ //Envío de comandos para la configuración
BusyXLCD(); //del cursos y el display
WriteCmdXLCD(a);
}
void gotoxyXLCD(uint8_t x, uint8_t y){//Función con la que podemos elegir posición
unsigned char direccion;
if(y != 1)
direccion = 0x40;
else
direccion = 0;
direccion += x-1;
comandXLCD(0x80 | direccion);
while( BusyXLCD() ); //wait untill LCD controller is busy
}
Y yo pregunto una cosa, ¿en lugar de usar delays en la librería XLCD no se pueden usar la librería Tick y usar el timer0 para hacer esos retardos?