/*----------------------------------------------------------------------------------------------------------------------------------
** Function Name : SetCol
** Description : Set appropiate address col
** Input : Col
** Output : Nothing
** Notes :
----------------------------------------------------------------------------------------------------------------------------------*/
void SetCol( byte Col, byte Row )
{
/* Express in zero base */
Col --;
switch ( Row )
{
case 1:
WriteLCD( FALSE, (( 1 << LCD_DDRAM ) | ( LCD_LINE1_ADDRESS + Col )), TRUE );
break;
case 2:
WriteLCD( FALSE, (( 1 << LCD_DDRAM ) | ( LCD_LINE2_ADDRESS + Col )), TRUE );
break;
case 3:
WriteLCD( FALSE, (( 1 << LCD_DDRAM ) | ( LCD_LINE3_ADDRESS + Col )), TRUE );
break;
case 4:
WriteLCD( FALSE, (( 1 << LCD_DDRAM ) | ( LCD_LINE4_ADDRESS + Col )), TRUE );
break;
}
}