title: Why "lcd_puts" doesn't display the value of a variable at LCD 16*2?
body: <p>I tried to display a value at a LCD in proteus simulator by the following code which is written in Codevision:</p>
  
  <pre><code>sprintf(buffer,"Temp=%f\xdfC\n",temp);
  lcd_puts(buffer);
  </code></pre>
  
  <p>but the value of temp doesn't appear in front of "temp=" at LCD!</p>
  
  <p><a href="https://i.stack.imgur.com/A4OAc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A4OAc.png" alt="enter image description here"></a></p>
  
  <p>the whole code is:</p>
  
  <pre><code> #include &lt;mega16.h&gt;
   #include &lt;delay.h&gt;
   #include &lt;stdio.h&gt;
   #include &lt;alcd.h&gt; 
  
   char buffer[32];
   float temp=26.3457;  
  
  
  void main(void){    
      lcd_init(16);
  
      while(1){
  
        lcd_clear();
        sprintf(buffer,"Temp=%f\xdfC\n",temp);
        lcd_puts(buffer);
        delay_ms(1500);
      }
  }
  </code></pre>