-
Hello, I have a board with esp32s3 + st7789 lvgl_micropython compilation:
lvgl_micropython test script
as reference, this is the script I use with bare micropython and st7789_mpy
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 14 replies
-
How would I start debugging this? |
Beta Was this translation helpful? Give feedback.
-
I have to update the example code because things have changed. I forgot to update the example and I am sorry for that. I just had back surgery this past Tuesday (2 days ago) and I have not spent much time sitting at the computer for obvious reasons. I have popped in for a little bit here and there but that's about it. haven't wanted to sit for any kind of a long amount of time due to the quite large amount of pain i am in. I had a hole drilled through one of my vertebrae to have some material removed from around my spinal cord and around one of the branches for the sciatic nerve that runs down my right leg. Typical healing time is 12 to 16 weeks. I know you really want things to move forward with this but unfortunately it is going to have to wait a bit longer until I am able to really dive back in. I was out of commission for almost 6 weeks before the surgery and that has made the progress really slow with this project. I am really sorry but to be sure this is not something I planned to have happen nor did I want to have happen. |
Beta Was this translation helpful? Give feedback.
-
from micropython import const
_MOSI = const(6)
_MISO = const(8)
_SCLK = const(7)
_CS = const(5)
_DC = const(4)
_RESET = const(48)
_FREQ = const(80_000_000)
_WIDTH = const(296)
_HEIGHT = const(240)
import lcd_bus
bus = lcd_bus.SPIBus(
dc=_DC,
host=2,
mosi=_MOSI,
miso=_MISO,
sclk=_SCLK,
cs=_CS,
freq=_FREQ
)
import st7789
import lvgl as lv
display = st7789.ST7789(
data_bus=bus,
display_width=_WIDTH,
display_height=_HEIGHT,
reset_pin=_RESET,
reset_state=st7789.STATE_LOW,
color_space=lv.COLOR_FORMAT.RGB565,
rgb565_byte_swap=True
)
# display.set_rotation(lv.DISPLAY_ROTATION._90)
display.init()
btn = lv.button(lv.screen_active())
btn.set_size(100, 100)
lbl = lv.label(btn)
lbl.set_text("Press me, I'm a button")
btn.center()
label2 = lv.label(lv.screen_active())
label2.set_long_mode(lv.label.LONG.SCROLL_CIRCULAR) # Circular scroll
label2.set_width(150)
label2.set_text("It is a circularly scrolling text. ")
label2.align(lv.ALIGN.CENTER, 0, 40)
import time
while True:
time.sleep_ms(1)
lv.tick_inc(1)
lv.task_handler() |
Beta Was this translation helpful? Give feedback.
-
I updated to the latest version (25/03) and I tried this, but still the same result. |
Beta Was this translation helpful? Give feedback.
-
what display and MCU are you using? |
Beta Was this translation helpful? Give feedback.
-
Need to know who makes the display. I say this because you specifically said "my display stays black" which makes me wonder if there is a backlight pin that you are not using and maybe there is a defaulted on in that other library that is being used or perhaps you passed a backlight pin to that other library and just forgot about it. I am going to add to the ESP32 build using custom partition sizes because MicroPython doesn't have proper support for the different flash sizes. It's OK with the memory just not with the partitions. Right now you are only able to use 8mb of that 16mb of storage. |
Beta Was this translation helpful? Give feedback.
-
I have not seen a display yet that needed to have the reset pin pulled low to reset it. Try commenting out the line for the reset pin state just to see what happens.. |
Beta Was this translation helpful? Give feedback.
-
git commit version cabd909
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to use with ST7701 ?? |
Beta Was this translation helpful? Give feedback.
Hello Kevin, we get an image!
git commit version cabd909