Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TTGO ESP32 with ST7789V display
#1
Hello,
I'm using LILYGO TTGO T-Display ESP32 with ST7789V LCD on Arduino.


it's works well but i would like to use it with micropython.

everything works well with esp32_all, but not the display

does anyone know how to make it working ?

my code :
Code:
import display
tft = display.TFT()
tft.init(tft.ST7789,width=135,height=240,mosi=19,clk=18,cs=5,dc=16,miso=19,rst_pin=23,backl_pin=4,backl_on=1)
tft.rect(10,10,100,100,tft.RED,tft.BLUE)

backlight is on, but it's all

thanks to community
Reply
#2
which firmware have you installed? I tried the prcompiled esp32_All but i can't get the prompt
Reply
#3
(12-11-2019, 11:47 AM)andrek20 Wrote: which firmware have you installed? I tried the prcompiled esp32_All but i can't get the prompt

Yes, esp32_All
I tried also esp32_psram, successfully
Reply
#4
(12-10-2019, 04:36 PM)dam74 Wrote: I'm using LILYGO TTGO T-Display ESP32 with ST7789V LCD on Arduino.

does anyone know how to make it working ?

my code :
Code:
import display
tft = display.TFT()
tft.init(tft.ST7789,width=135,height=240,mosi=19,clk=18,cs=5,dc=16,miso=19,rst_pin=23,backl_pin=4,backl_on=1)
tft.rect(10,10,100,100,tft.RED,tft.BLUE)

Just happened by looking for some T-Display uPython drivers and saw your question.  Don't know if this will help you, but in your code you have both MOSI & MISO set to the same pin.  I think that's the problem.  You need to find out what SPI pins your board is using.  I think there are two variations.  On my board, MISO is not used, but the corresponding Pin 16 is used for DC as in your code.  Here is the schematic that might help explain this, https://github.com/Xinyuan-LilyGO/TTGO-T...-26%29.pdf
Reply
#5
(03-06-2020, 03:44 PM)stanely Wrote:
(12-10-2019, 04:36 PM)dam74 Wrote: I'm using LILYGO TTGO T-Display ESP32 with ST7789V LCD on Arduino.

does anyone know how to make it working ?

my code :
Code:
import display
tft = display.TFT()
tft.init(tft.ST7789,width=135,height=240,mosi=19,clk=18,cs=5,dc=16,miso=19,rst_pin=23,backl_pin=4,backl_on=1)
tft.rect(10,10,100,100,tft.RED,tft.BLUE)

Just happened by looking for some T-Display uPython drivers and saw your question.  Don't know if this will help you, but in your code you have both MOSI & MISO set to the same pin.  I think that's the problem.  You need to find out what SPI pins your board is using.  I think there are two variations.  On my board, MISO is not used, but the corresponding Pin 16 is used for DC as in your code.  Here is the schematic that might help explain this, https://github.com/Xinyuan-LilyGO/TTGO-T...-26%29.pdf

Set miso=17, then it works.
I made a tutorial on how to use lobo micropython with the TTGO T-Display, https://www.instructables.com/id/TTGO-co...T-display/ This might be helpfull.
Reply
#6
I have been playing with this all day. I tried to get page flipping to work by sending raw low-level commands, but unfotunately this can only work for a portion of the screen, not the whole display.

Otherwise, the graphics library included gives a lot of flickering since it is not double buffered. It seems incredibly slow compared to TFT_eSPI c examples.

I feel like with this cpu it would be possible to do software opengl, but the included library seems very limited. It would be interesting maybe to compile tinygl in, and use double buffering and maybe DMA for spi. Any thoughts?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)