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

Started by mjllewelyn, December 27, 2017, 05:28:53 PM

Previous topic - Next topic

mjllewelyn

*
Newbie
Posts: 2
Logged
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.

Ben R

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

mjllewelyn

*
Newbie
Posts: 2
Logged
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