Move from 16x2 LCD to TFT #1801
Unanswered
g7kse
asked this question in
Q&A - General
Replies: 1 comment
-
To overwrite old text you must set a background colour: tft.setTextColor(TFT_WHITE, TFT_BLACK); In this case white is the foreground colour and black is for background. The library has the basic Adafruit_GFX comaptible functions. I suspect the tutorial here will be of help: |
Beta Was this translation helpful? Give feedback.
0 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.
-
I've been stumped by this for a while and could do with some help
I've been using a sketch with an arduino and 16x2 LCD to decode morse code (CW) and its pretty good at it for a machine. I'd like to use it with a TTGO and I'm getting lost in translating the LCD code to use with the TFT. The display is a 1.4". I can use
tft.print
for the static text and try to usedrawString
for the updated numbers but they just overwrite each other rather than clear first then write (I think). So I could do with some help understanding where to go with this please. Every time I work through an error I seem to get another one, so going back to first principles would be better I thinkSo The bit I'm getting in a muddle with is...
This code excluded the tuning indicator for now as I couldn't get my head round it. Basics first. Display the WPM value and update when it is changed and write the decoded text as either a single line or as there is space, ideally one line, then move that line 'up one' then write a second line then repeat the process.
I'm sure this is not new but its new to me.
You will see that a lot of the oroginal code is for an arduino uno etc and a 16x2 line display. I'd just like it smaller and the TTGO seemed like a good idea. There is also a version for an SH1106 display here which I was trying to use for tips as well.
Complete original code
Beta Was this translation helpful? Give feedback.
All reactions