Replies: 3 comments 3 replies
-
You should use Using: One important thing to note. With this method of using Writer you should always blit I've also noticed that you're using an older version of my driver, so you might consider updating it to the newest version. There were some bugfixes and massive speed up (~10x) for landscape mode. |
Beta Was this translation helpful? Give feedback.
-
Firstly, thank you for explaining the centering calculations. Oddly though, if I take your recommendation:
The text is rendered top-left of the screen. However, if I switch it round to:
It works as expected. It should be noted also that I'm not running this on a Pico, I'm using a TinyS2 attached to the pins on the back of the screen via a breadboard currently. I needed internet, so can't use the Pico. Perhaps that's why I'm seeing different output? I'm happy to test using a Pico if you would like me to. Also, thank you for the new library. I've just tried it and it's certainly is a lot quicker! However, I've been using the one on the partial-updates branch as it benefits my project. Are you planning on merging that into main? |
Beta Was this translation helpful? Give feedback.
-
I have just noticed that you're writing text to screen before setting text position.
I'm still not sure that the current implementation of differential/partial updates is how I want it to look like so I'm not planning to merge it to main at this time. That being said partial-updates branch also has been updated with some speedups, so you might want to grab its newer version regardless. I'll try to update it further to be as fast as main, but it may take some time. PS I've converted this issue to "discussion", mainly because I want to try this feature out and this conversation isn't related to any specific issue with the library. |
Beta Was this translation helpful? Give feedback.
-
Is there a simple way of working out the width of the rendered object after calling
wri.printstring
?I'd like to be able to centre text based on the screen width. I've been playing around with .clip_width and .char_width methods, but they don't seem to be set to the actual length of the rendered text on the screen. I tried the following in the REPL:
Renders as this.
Apologies if I'm using the wrong terminology, or indeed, using the wrong forum to ask questions. I'm very much at the beginning of my MicroPython journey, and trying to learn as I go along.
Beta Was this translation helpful? Give feedback.
All reactions