SPI ESP32

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
striker
Posts: 1
Joined: Sun Feb 16, 2020 11:54 am

SPI ESP32

Post by striker » Sun Feb 16, 2020 12:20 pm

Hi,
I'm trying to run simple display code on this esp32 board
board:https://github.com/Xinyuan-LilyGO/TTGO-T-Display
code: https://github.com/russhughes/st7789_mpy


it works if I run the script from uPyCraft but it's not working if I just power up the device.

I'm sure that the code is working - backlight is lighting up and I'd added some debug strings

I uploaded the code here https://drive.google.com/file/d/1a6u3Ns ... HjY_kKHr0p

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: SPI ESP32

Post by jimmo » Sun Feb 16, 2020 11:45 pm

Is the code in main.py (or imported and run from main.py)?

Probably the best thing to try is to add some print() statements to the code, copy the files onto the filesystem, open up the REPL, then hit Ctrl-D and you should see the code running.

jhfoo
Posts: 17
Joined: Tue Jul 07, 2020 6:50 am

Re: SPI ESP32

Post by jhfoo » Tue Jul 07, 2020 2:40 pm

did you resolve your issue? i'm looking to use your firmware to get ST7789V support.

jhfoo
Posts: 17
Joined: Tue Jul 07, 2020 6:50 am

Re: SPI ESP32

Post by jhfoo » Tue Jul 07, 2020 4:05 pm

Update: I was able to use the slower ST7789 library here (https://github.com/devbis/st7789py_mpy) to literally set some pixels. Looking for some help to be able to paint texts and icons.

User avatar
moooond
Posts: 5
Joined: Wed Jul 08, 2020 4:14 pm
Contact:

Re: SPI ESP32

Post by moooond » Wed Jul 08, 2020 4:39 pm

jhfoo wrote:
Tue Jul 07, 2020 4:05 pm
Update: I was able to use the slower ST7789 library here (https://github.com/devbis/st7789py_mpy) to literally set some pixels. Looking for some help to be able to paint texts and icons.
i took that library and merged in some basic 8x5 font rendering:

https://gitlab.com/mooond/t-watch2020-e ... icropython

jhfoo
Posts: 17
Joined: Tue Jul 07, 2020 6:50 am

Re: SPI ESP32

Post by jhfoo » Sun Jul 12, 2020 8:06 am

moooond wrote:
Wed Jul 08, 2020 4:39 pm
jhfoo wrote:
Tue Jul 07, 2020 4:05 pm
Update: I was able to use the slower ST7789 library here (https://github.com/devbis/st7789py_mpy) to literally set some pixels. Looking for some help to be able to paint texts and icons.
i took that library and merged in some basic 8x5 font rendering:

https://gitlab.com/mooond/t-watch2020-e ... icropython
I tried your repo and have some questions, posted here: viewtopic.php?f=18&t=8642&p=49059#p49059

Post Reply