Skip to content

add board TTGO T-Display #3693

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

Closed

Conversation

joerglemke
Copy link

This adds a new board TTGO T-Display.
This also requires related changes in platform-espressif32. See my pull request there.

This board is like a base ESP32 dev board with integrated display.
Hence, the additions are modified copies from the ESP32 DEV board.

boards.txt Outdated
@@ -4838,12 +4838,12 @@ ttgo-t-display.build.flash_freq=40m
ttgo-t-display.build.flash_mode=dio
ttgo-t-display.build.boot=dio
ttgo-t-display.build.partitions=default
ttgo-t-display.build.defines=
ttgo-t-display.build.commondefs=-DARDUINO_TTGO_Display -DUSER_SETUP_LOADED=1 -DST7789_DRIVER=1 -DTFT_WIDTH=135 -DTFT_HEIGHT=240 -DCGRAM_OFFSET=1 -DTFT_MOSI=19 -DTFT_SCLK=18 -DTFT_CS=5 -DTFT_DC=16 -DTFT_RST=23 -DTFT_BL=4 -DTFT_BACKLIGHT_ON=HIGH -DLOAD_GLCD=1 -DLOAD_FONT2=1 -DLOAD_FONT4=1 -DLOAD_FONT6=1 -DLOAD_FONT7=1 -DLOAD_FONT8=1 -DLOAD_GFXFF=1 -DSMOOTH_FONT=1 -DSPI_FREQUENCY=40000000 -DSPI_READ_FREQUENCY=6000000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pin definitions (TFT_MOSI, etc) should be in pins_arduino.h, the rest of these should likely go there as well.

Overriding SPI_FREQUENCY here also doesn't seem like a good idea.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for commenting! I almost fully agree with you.

That board has built-in display. According to their documentation they have an adaption of the TFT_eSPI display library. The official documentation of this library says that you should either edit a .H file of the library or alternatively for PlatformIO, that you could supply these parameters on the compiler command line.
So I was looking for a way to supply these defines also using Arduino IDE. Thats why I defined them here.

I would also prefer to define these in pins.arduino.h .
Problem with TFT_eSPI is, it includes its own definitions BEFORE including Arduino.h. And so pins_arduino.h would come too late in the process.
So your finding is good, but it would require changes in that library, or project specific editing a library file, or supplying all those board specific params in each sketch.

What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFT_eSPI already requires project specific edits for the "user config" file so it doesn't seem like a blocker, there is also a Setup25_TTGO_T_Display.h file that defines all of these for TFT_eSPI in the library.

@Teslafly
Copy link

Teslafly commented May 12, 2021

Why was this closed without merging? This board is only becoming more popular and more available.

There are no less than 3 issues on the platformio github requesting (native) support for this board as well. which is blocking on this issue.

@BlueAndi
Copy link
Contributor

@joerglemke Could you reopen please? The board is not merged yet.

@pascalpfeil
Copy link

@atanisoft any idea why this was not merged?

@atanisoft
Copy link
Collaborator

@pascalpfeil Probably due to not being ready to be merged. A new PR would be required at this point if this is still required and it would need to remain open for devs to review.

@pascalpfeil
Copy link

Ok thank you - I will get this board in the mail in a few week, I might have a look myself

@FilipParyz
Copy link

Hi, what up with this board? Is it merged yet? :)

@atanisoft
Copy link
Collaborator

Is it merged yet? :)

Nope, this PR was closed by the filer rather than leaving open for merge. Feel free to submit a new PR.

@DocBrown101
Copy link

Has it still not been merged?

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

Successfully merging this pull request may close these issues.

7 participants