Drivers for Adafruit PiTFT28 boards (STMPE610 touchscreen and backlight control) #626
Unanswered
SteveSpencer
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
The class CCharDevice and methods like CST7789Display::DrawText() are obsolete
and deprecated now, because you can use any supported display now with the
class CTerminalDevice, which has the same function (and more, including
selectable fonts) like CCharDevice. This is demonstrated in sample/08-
usbkeyboard for example. Please see the sample's README for details. I did not
remove CCharDevice so far, because there are apps available, which use it, but
newer display drivers like for the ILI9341 did not receive this support any
more. So please use CTerminalDevice, another CILI9341Device is not necessary.
Unfortunately I don't know about the backlight control of your display. Circle
only supports the XPT2046 touch controller so far (beside the official 7"
Touchscreen v1).
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the end of last year, I moved house, and last week I finally finished unpacking! I found a couple of Adafruit PiTFT28 boards (which are for the original model B Pi, so not 2x20 headers) which have an ILI9341 TFT, and STMPE610 touchscreen, plus four pushbutton switches on 'spare' GPIOs.
Apparently the touchscreen uses SPI0.1, and in Trixie, shows up an additional GPIO chip, with line#2 controlling the backlight for the display.
Has anyone done any work with this board in Circle (a long shot, I know, as the board is now obsolete)? I think my only recourse is to look at the linux drivers for it (which IIRC, come in two flavours, SPI and I2C, but this is SPI).
It's a neat design because it fits on top of the Pi (and Pimoroni made cases for it like that), and would be useful for the case where an HDMI screen would be too intrusive/large. Unfortunately, I cannot yet figure out how to turn on the backlight, so have no idea what's on the screen .... :(
Incidentally, why does ST7789 have display text functions, and ILI9341 not have them? I have code written for a Pico which I can port to this to provide a reasonable 8x8 font which gives me CP437 support, but was curious as to why the difference? Perhaps a better solution might be to have an additional CILI9341Device which inherits from CCharDevice, and provides equivalent functionality to CST7789Device?
Beta Was this translation helpful? Give feedback.
All reactions