pi3d / pi3d_demos

Demos and support files for pi3d (3D graphics python package for the raspberry pi)
Other
71 stars 33 forks source link

Text display: Timing issue #50

Closed Duzeper closed 3 years ago

Duzeper commented 3 years ago

I posted this as a Q&A in pi3d_demos Discussions 3 days ago but there has been no response so I wonder if it is being monitored.

I still have pictureFrame2020 working great with on/off timers and all the MQTT commands also working well. I have, however, noticed something that is a little irritating. If I turn on or off any of the show text options, although they all work properly, the time delay is immediately reset to the default time, I presume by 'refresh = True'. Is there any way to make the image display just continue from where it was when the text display was initiated rather than starting again from zero?

Also, I have been looking at the discussion re. 'Current Date/Time' and saw your comment about adding a colon to CODEPOINTS in PictureFrame2020config.py. You may remember I had an issue with the picture frame crashing when it saw an Icelandic character, which you fixed by trapping unexpected characters. I wonder, though, given that 'NotoSans-Regular.ttf' supports the Icelandic alphabet, is it possible to simply add the character(s) to to 'CODEPOINTS = ....'? Assuming the answer is yes, then does it matter where in the string I insert the character? Also, since CODEPOINTS is a quoted string, how would I also insert a single quote?

Finally, can you explain the CODEPOINTS = '... line? I am assuming that the string is a list of characters that are available for the program to use, but what is the relevance of the comment 'limit to 49 ie 7x7 grid_size' given that there are more than 49 characters in the string?