pimoroni / scroll-phat-hd

Python library for Scroll pHAT HD
https://shop.pimoroni.com/products/scroll-phat-hd
MIT License
159 stars 64 forks source link

Twitter example application not working... #35

Closed mojeska closed 7 years ago

mojeska commented 7 years ago

I believe I have configure the example tweet application correctly with apps.twitter.com keys, however nothing is displayed on the device when I post tweets with the hashtag added to the script. All I ever see is an occasional four dots scroll across the screen. Any help would be appreciated.

mojeska commented 7 years ago

The example tweet application imports a smoothed font, and that's apparently the problem. Change the font to just the 5x7, and now things are working.

morsh commented 7 years ago

FYI, worked for me with: from scrollphathd.fonts import font5x7 ...

            scrollphathd.write_string(status,font=font5x7, brightness=0.1)
            status_length = scrollphathd.write_string(status, x=0, y=0,font=font5x7, brightness=0.1)