--- trunk/Embedded/main.c 2007/11/30 16:05:11 111 +++ trunk/Embedded/main.c 2007/11/30 16:07:03 112 @@ -36,8 +36,8 @@ PCFG2=1; PCFG3=1; - //Result is right justified - ADFM=1; + //Result is left justified + ADFM=0; //Fire up for A/D converter module ADON=1; @@ -88,15 +88,10 @@ } void update_lcd(void) -{ - int i = 0, horizontal = 0, vertical = 0; - char alfa[2][LCD_LENGTH]; - - - static char current_row = 0; - static char current_char = 0; +{ char toLCD0[LCD_LENGTH], toLCD1[LCD_LENGTH]; - char B1[16]; + char B1[LCD_LENGTH]; + char sprintF[LCD_LENGTH]; lcd_goto(0x00); sprintf(toLCD0, "%s", "Ejdesgaard"); if(RB1) @@ -110,8 +105,8 @@ lcd_puts(B1); lcd_goto(0x40); -// sprintf(toLCD1, "%s", "Test"); - lcd_puts("Test1"); + sprintf(sprintF,"%08d%08d", global_Pot_Hi, global_Pot_Lo); + lcd_puts(sprintF); } @@ -137,7 +132,7 @@ { global_Pot_Hi = ADRESH; global_Pot_Lo = ADRESL; - GODONE = 0; + GODONE = 1; } update_lcd();