TinyCircuits Forum

General Category => General Discussion => Topic started by: mjllewelyn on December 27, 2017, 05:28:53 PM

Title: Displaying a .txt file from a SD card on a TinyScreen+
Post by: mjllewelyn 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.
Title: Re: Displaying a .txt file from a SD card on a TinyScreen+
Post by: Ben R on December 29, 2017, 08:24:39 AM
well you could read from the txt file and do display.print(textFile);
Title: Re: Displaying a .txt file from a SD card on a TinyScreen+
Post by: mjllewelyn 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.