So please let me know how to sort it out. thank you ukweb
#include "lcdlib.h"
const unsigned char down [5] = { 'd','o','w','n',0x00 } ;
const unsigned char up [5] = { 'u','p',' ',' ',0x00 } ;
void main ( void )
{
lcd_start () ;
while (1)
{
lcd_cursor ( 0, 0 ) ;
if ( input_port_a() )
{
lcd_print ( down ) ;
}
else
{
lcd_print ( up ) ;
}
}
}
Code: Select all