Ingo Electronics


  LCD output functions

 
char *LCD_ch_max96111 = "000000";
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//display temperature
void display_MAX96111_temperature(char row, char column,unsigned int value){

LCD_ch_max96111[0] =  (value/10000) + 48  ;
if (LCD_ch_max96111[0] == '0')  {LCD_ch_max96111[0] = ' ';};
LCD_ch_max96111[1] =  (value/1000) + 48  ;
if (LCD_ch_max96111[1] == '0')  {LCD_ch_max96111[1] = ' ';};
LCD_ch_max96111[2] =  (value/100)%10 + 48  ;
LCD_ch_max96111[3] =   0x2E;
LCD_ch_max96111[4] =  (value/10)%10 + 48  ;
LCD_ch_max96111[5] =  (value)%10 + 48  ;

Lcd_Out(row, column, LCD_ch_max96111);
Lcd_Chr(row,column+6, 223); // laipsniai
Lcd_Out(row,column+7, "C");
}
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 //display RS+ input volts
void display_MAX96111_RS(char row, char column,unsigned int value){

LCD_ch_max96111[0] =  (value/1000) + 48  ;
if (LCD_ch_max96111[0] == '0')  {LCD_ch_max96111[0] = ' ';};
LCD_ch_max96111[1] =  (value/100)%10 + 48  ;
LCD_ch_max96111[2] =   0x2E;
LCD_ch_max96111[3] =  (value/10)%10 + 48  ;
LCD_ch_max96111[4] =  (value)%10 + 48  ;
LCD_ch_max96111[5] =   'V';

Lcd_Out(row, column, LCD_ch_max96111);
}
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
void display_MAX96111_amps(char row, char column,unsigned int value){

LCD_ch_max96111[0] =  (value/1000) + 48  ;
LCD_ch_max96111[1] =  (value/100)%10 + 48  ;
LCD_ch_max96111[2] =  (value/10)%10 + 48  ;
LCD_ch_max96111[3] =   value%10 + 48  ;
LCD_ch_max96111[4] =   'm';
LCD_ch_max96111[5] =   'A';

Lcd_Out(row, column, LCD_ch_max96111);
}
//''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''