Display the result of two variable in dame time

Hello,

i want to display the esult of two variable in same time in an LCD display 16X2
i give the portion of my code that runs correctly :

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11,5, 4, 3, 2); // Wiring microcontroller - LCD:


char buffer[16];      
dtostrf(reMap(nodepoints,val),16,2, buffer);

  
  lcd.clear();

  for (int i=0; i<strlen(buffer); i++)
 {
   
   lcd.setCursor(i,1);
   lcd.write(buffer[i]);  
   
   text_screen(messages[4], 1, 0); 
  
 }

i want to display at the same time this code

char buffer2[16];
dtostrf(Rs,16,2, buffer2);
  
  lcd.clear();

  for (int i=0; i<strlen(buffer2); i++)
 {
   
   
    lcd.setCursor(i,3);
   lcd.write(buffer2[i]);  
   
 text_screen(messages[5], 1, 1); 
   }

thanks

The code you posted does not run on my UNO as it is incomplete.
Please post the whole sketch (or a working minimized version)

Please use CTRL-T before saving/copying code, it autoformats the code and that makes it more readable,

thank you

What libraries are you using?

So, why not just join them together, no? Only one call to lcd.clear() though.

Also, look at lcd.print(). That may be appropriate for you.

  lcd.clear();

  for (int i=0; i<strlen(buffer); i++)
 {
   lcd.setCursor(i,1);
   lcd.write(buffer[i]);  
   text_screen(messages[4], 1, 0);  
 }

 for (int i=0; i<strlen(buffer2); i++)
 {
    lcd.setCursor(i,3);
    lcd.write(buffer2[i]);     
    text_screen(messages[5], 1, 1); 
 }