Skip to content

Conversation

@anabolyc
Copy link

Fixes #<GitHub-issue-number>.

Make sure all boxes are checked (add x inside the brackets) when you submit your contribution, remove this sentence before doing so.

<Description of and rationale behind this PR>

@anabolyc anabolyc closed this Dec 22, 2021
@anabolyc anabolyc reopened this Dec 22, 2021
@anabolyc anabolyc closed this Dec 22, 2021
@anabolyc anabolyc deleted the features/esp32-dev-boards branch December 22, 2021 14:47
@edasque
Copy link

edasque commented Jan 31, 2022

So this was never merged, was it?

@anabolyc
Copy link
Author

I've created it accidentally, intention was to keep in in fork. My changes would break upstream repo.

@edasque
Copy link

edasque commented Feb 2, 2022

Gotcha. I can't create issues on https://github.com/anabolyc/esp32-esp8266-weather-station-color - do you think it would work on a LILYGO TTGO T-Display ESP32 (IPS ST7789V 1.14 Inch at 135px*240px) and if not, what should I be looking at to make it work (guessing you don't support that display resolution), @anabolyc ?

@anabolyc
Copy link
Author

anabolyc commented Feb 2, 2022

@edasque I'm using same display controller and don't have touch, so it will work. Please have a look at platformio.ini file and make pinout and screen size adjustments, it should work with no code changes apart from that.

@edasque
Copy link

edasque commented Feb 3, 2022

Some of that worked but not the display. Serial monitor gets up to:

start document
Free mem: 264904

with

	-D ST7789_TFTWIDTH=135
	-D ST7789_TFTHEIGHT=240
	-D TFT_CS=5
	-D TFT_RST=23
	-D TFT_DC=16
	-D TFT_LED=4
	-D TFT_ROTATION=0
	-D TFT_MOSI=19
	-D TFT_SCLK=18

But I think the earlier screen setup part probably isn't working. I changed the code to:

  gfx.init();
  gfx.fillBuffer(MINI_YELLOW/);
  gfx.setRotation(TFT_ROTATION);
  gfx.commit();

And it doesn't turn yellow (LED is on though)

Where would you start debugging?

@anabolyc
Copy link
Author

anabolyc commented Feb 3, 2022

@edasque pinout seems right, MOSI and SCLK is redundant, since it is configured as HW SPI. Really hard to say without having board to poke around.
I'd try to run Bodmer's TFT_eSPI and Adafruit ST7789 lib samples, as soon as you'd get it to work you can check what is the initialization code that works.

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.

2 participants