Skip to content
Discussion options

You must be logged in to vote

This tutorial should help, it uses the String class which makes building strings out of characters and numbers easy.
https://docs.arduino.cc/built-in-examples/strings/StringConstructors

Based on that tutorial example sketch you could replace the Serial.println(stringOne); for example with:

tft.drawString(stringOne, x, y); // x, y is position on TFT screen

Don't worry about the const qualifier, this simply means the function being called in the library is not allowed to try change the variable.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rasmushauschild
Comment options

Answer selected by rasmushauschild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants