TinyCircuits

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

Displaying a .txt file from a SD card on a TinyScreen+
« on: December 27, 2017, 05:28:53 PM »
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

Re: Displaying a .txt file from a SD card on a TinyScreen+
« Reply #1 on: December 29, 2017, 08:24:39 AM »
well you could read from the txt file and do display.print(textFile);

Re: Displaying a .txt file from a SD card on a TinyScreen+
« Reply #2 on: December 29, 2017, 06:52:33 PM »
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.