Skip to content

esp32s3 + st7789 no image #17

Answered by cheops
cheops asked this question in Q&A
Mar 20, 2024 · 9 comments · 14 replies
Discussion options

You must be logged in to vote

Hello Kevin, we get an image!

git commit version cabd909

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(240)
HEIGHT = const(296)

import lcd_bus

bus = lcd_bus.SPIBus(
    dc=DC,
    host=1,
    mosi=MOSI,
    miso=MISO,
    sclk=SCLK,
    cs=CS,
    freq=FREQ
)

import st7789
import lvgl as lv
lv.init()

buf1 = bus.allocate_framebuffer(14_208, lcd_bus.MEMORY_DMA)
buf2 = bus.allocate_framebuffer(14_208, lcd_bus.MEMORY_DMA)

display = st7789.ST7789(
    data_bus=bus,
    display_width=WIDTH,
    display_height=HEIGHT,
    frame_buffer1=buf1,
    frame_buffer2=buf2,
    rese…

Replies: 9 comments 14 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cheops
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cheops
Comment options

Comment options

You must be logged in to vote
3 replies
@cheops
Comment options

@cheops
Comment options

@cheops
Comment options

Comment options

You must be logged in to vote
4 replies
@cheops
Comment options

@kdschlosser
Comment options

@cheops
Comment options

@cheops
Comment options

Comment options

You must be logged in to vote
1 reply
@kdschlosser
Comment options

Answer selected by cheops
Comment options

You must be logged in to vote
4 replies
@kdschlosser
Comment options

@kdschlosser
Comment options

@marilantagliari
Comment options

@kdschlosser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants