Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I'm new to energia development, and I would like an example of how to convert a numeric value to a string for output. Often, the launchpad LCD modules will support output for strings, but I have not found a good way to convert a number into a string for output. I am getting a reading into variable t I want to display on the 2.2 Touch LCD module. My available output command is .text(x,y,string); So I write; float t = dht.readTemperature(); myScreen.Text(10,10,"Temp"); Next I want to output the value to t to the screen. How would you go about doing this? Thanks so much!
  2. I'm a newb here, and I can't seem to figure out how to write a string variable to the LCD. String Input; while (Serial.available() > 0) { int Receiver = Serial.read(); Input += (char)Receiver; if (Receiver == '\n') { Input.replace("\n", ""); lcd.writeString(0,4,Input); Input = ""; } } results in error lcdboosterpack.h:24:6: note: no known conversion for argument 3 from 'String' to 'char*' What am I doing wrong here? Thanks !
  • Create New...