Displaying a .txt file from a SD card on a TinyScreen+

mjllewelyn

  • Newbie
  • *
    • Posts: 2
    • View Profile
I was wondering if there was a way to have a .txt file on a SD card and be able to display that on the TinyScreen+. I know there is code found https://tinycircuits.com/blogs/learn/120988679-putting-images-on-your-tinyscreen for displaying images, but I was wondering if there was a way to display a .txt file.
I am also wondering if there is a way to wrap text on a TinyScreen+.
Thanks for your help.
« Last Edit: December 27, 2017, 05:32:01 PM by mjllewelyn »


Ben R

  • Full Member
  • ***
    • Posts: 13
    • View Profile
well you could read from the txt file and do display.print(textFile);


mjllewelyn

  • Newbie
  • *
    • Posts: 2
    • View Profile
What would be your advice on getting the TS+ to read the txt file. I tried taking this code https://tinycircuits.com/blogs/learn/120988679-putting-images-on-your-tinyscreen and replacing .TSV with .txt but that didn't work. I also tried:
fileInfo.read("Test.txt");
display.print("Test.txt");
but that didn't work either. If you could help.
Thanks.


 

SMF spam blocked by CleanTalk