Mistake in TFT Lib display-text example

Since 2013, and still in IDE 2.0.2, there is a mistake in example TFTDisplayText in the TFT Libraries:

// char array to print to the screen
char sensorPrintout[4];
  // convert the reading to a char array
  sensorVal.toCharArray(sensorPrintout, 4);

Both "4" should be replaced by "5".
For my students it is very annoying to see after "999" the "100" (instead of "1000") is getting displayed when rotating the potentiometer.
One fine day, it should be changed in the included library as well as on

Consistency over accuracy. Ever notice few folks ever use the built-in examples? +1 for you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.