display : seeedstudio.com/wiki/2.8’’_TFT_Touch_Shield
board : arduino mega
We use the seeed shield tft but we need to display variables. Can anyone give us a hint how we can display by example the valua of a analog-pin value?
example:  Tft.draw…??? variables??    ,170,320,2,BLUE);
             
            
              
              
              
            
           
          
            
              
                deray
                
              
              
                  
                  
              2
              
             
            
              Hi,
you can try to  use the code like below :
  char s[20];
  int value ;
  value = analogRead(sensorPin);
  sprintf(s,"%d",value);
  Tft.drawString(s,0,160,1,CYAN);
Deray
             
            
              
              
              
            
           
          
            
            
              
deray hi print it over what can i do to return or clear? please
             
            
              
              
              
            
           
          
            
              
                deray
                
              
              
                  
                  
              4
              
             
            
              Hi ,
Sorry that our engineer didn’t write the clear function ,we will add it later . Before , you can use the initialize function first.
Regards,
Deray