Replies: 3 comments 3 replies
-
Hi, Sorry not to respond earlier. I get an email notification of Discussion posts just the same as Issues but I've been away from the laptop for a few days, checking emails with phone and, because I didn't reply when I read it, it's dropped off the radar! The In order for the text to start showing as soon as an MQTT message was received there would have to be an additional variable introduced into the above formula: The CODEPOINTS line now looks like https://github.com/pi3d/pi3d_demos/blob/develop/PictureFrame2020config.py#L127 in the develop branch (which I will push to master quite soon, maybe after thinking about the
Paddy |
Beta Was this translation helpful? Give feedback.
-
Hi, yes to all three questions. It's possible to read characters drawn on a 10x10 pixel square but that's probably the limit. i.e. in the 1024x1024 Texture there's space for up to 10,000 characters but at that point it looks pretty pixelly. txt = '\'' #or "\"" I have modified the PictureFrame code in the develop branch bec6b0a so it doesn't restart the slide when you change the text. As you can see it was a little more involved than I thought because the text creation code only ran at the start of a new slide. Paddy |
Beta Was this translation helpful? Give feedback.
-
A slightly different question about timing of text display: Is it possible to have the text display begin either:
--Jeff |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions