Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6857

Scroll Phat HD - how to scroll the buffer exactly one time

$
0
0

@centralHarlem wrote:

[original question] I would like to scroll a message exactly once, so that it scrolls off the left of the screen and does not reappear. With graphics, this is relatively easy because I know how many pixels wide the thing is that I drew. But with text, no such luck. How can I determine the number of pixels to scroll a given message in a given font? (Or any alternative method to scroll the buffer exactly once).

[edit] I figured it out — scrollphathd.write_string returns the width of the string in pixels.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6857

Trending Articles