Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newbie needing help with TFT colours and fonts #203

Open
rjmusto opened this issue May 12, 2021 · 6 comments
Open

Newbie needing help with TFT colours and fonts #203

rjmusto opened this issue May 12, 2021 · 6 comments

Comments

@rjmusto
Copy link

rjmusto commented May 12, 2021

Hi all,
Firstly a big thanks to Ed for sharing all his hard work on this Internet radio. Amazing stuff.

I have got mine up and running and am using an ST7735 1.8" display, and am very happy to have got it working.

As there is plenty of room on the display, I would really like to make the font bigger and maybe add some background colours, but can't work out how to do this (not new to Arduino code but certainly no expert...). I've seen the;

"#define dsp_setTextSize(a) tft->setTextSize(a) // Set the text size"

line in the bluetft.h tab, but am not sure what to do with it. I've read about setTextSize(1) and setTextSize(2), but no idea how the (a) in this example relates to that.

And as for background colours.... no idea where to start.

Any help much appreciated.

Thanks,
Ralph

@Edzelf
Copy link
Owner

Edzelf commented May 13, 2021

dsp_setText is just a macro. The goal is to make a function "dsp_setText()" that will work on all included display drivers.
So if you want to change the size, look for calls of "dsp_setText" in the main program.
For colours, look for "BLACK" or "RED" or "YELLOW" in the main program.

@rjmusto
Copy link
Author

rjmusto commented May 15, 2021

Hi Ed,
Many thanks for the reply, much appreciated.

My main interest was to make the text in the middle block that displays the station being played a bit bigger - helps with my ageing eysight.....

Thanks for the hints - I am gradually developing a better understanding of the sketch structure, so will work away on that.

BR,
Ralph

@Derek-K
Copy link

Derek-K commented Jul 2, 2021

I have successfully replaced the original AdadruitGFX & ILI9163C library with TFT_eSPI library with minimal modification and eventually redesigned the GUI.

Using TFT_eSPI will allow you to use many types of LCD (e.g. I am currently using a 320x240 ILI9341 with touch screen control)

@h1aji
Copy link

h1aji commented Feb 7, 2022

@Derek-K would you be able to share your code with TFT_eSPI? thanks

@Derek-K
Copy link

Derek-K commented Mar 21, 2022

@h1aji As far as I remember, just load the TFT_eSPI library, and if there are any changes, it will be very minor.

@h1aji
Copy link

h1aji commented Mar 24, 2022

@Derek-K Figured out, easy. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants