https://github.com/klaxxon/adafruittftscroller
Sample of scrolling the HX8357 through hardware in portrait mode.
https://github.com/klaxxon/adafruittftscroller
adafruit arduino display esp32 hx8357 scroll spi tft
Last synced: about 1 month ago
JSON representation
Sample of scrolling the HX8357 through hardware in portrait mode.
- Host: GitHub
- URL: https://github.com/klaxxon/adafruittftscroller
- Owner: klaxxon
- Created: 2019-03-13T20:52:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T18:02:43.000Z (over 7 years ago)
- Last Synced: 2025-03-28T23:13:07.125Z (about 1 year ago)
- Topics: adafruit, arduino, display, esp32, hx8357, scroll, spi, tft
- Language: C++
- Size: 3.84 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# adafruitTFTScroller
[](https://www.youtube.com/watch?v=Tj7TkK-RHag)
Sample of scrolling the HX8357 through hardware in portrait mode. I wanted a way to dump Serial to this little screen, which required some sort of scrolling. I could not find anything except the hardware manual for the chip to perform scrolling so I wrote this little class to implement a smooth scroll. This class uses the AdaFruit HX8357 tft driver, but could probably be used with other drivers using similar hardware.
You can get the board from here:
https://www.amazon.com/gp/product/B00TIYUWNY/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
or AdaFruit directly at:
https://www.adafruit.com/?q=hxd8357d
Class inherits from Print.
Additional methods:
config(int rotation, int textsize);
Calls the underlying TFT methods for rotation and text size.
setTextSize(int textsize);
Sets text size. Can be used between calls to change text size between output calls.
SetTextColor(unsigned short)
Set text color.
SetBackgroundColor(unsigned short)
Set text background color.
setLinePadSize(int y);
Sets number of pixels between each line of text. Defaults to two.
Limitations:
No word wrap. Currently truncates anything greater than max chars per line (320 / 8 * textsize).