Skip to content

Can't get DMA to SPI to work #17764

Closed Answered by HLammers
HLammers asked this question in RP2040 / Pico
Jul 25, 2025 · 4 comments · 4 replies
Discussion options

You must be logged in to vote

Thanks @GitHubsSilverBullet and @robert-hh, now it works.

For if anybody find this in search of a solution, this is my working test code:

import machine
import time
import random
import rp2
import framebuf

_DISPLAY_BAUTRATE            = const(50_000_000)
_DISPLAY_SPI                 = const(0)
_DISPLAY_PIN_DC              = const(20) # RS
_DISPLAY_PIN_RST             = const(21)
_DISPLAY_PIN_BACKLIGHT       = const(17) # LED

_DISPLAY_WIDTH        = const(220)
_DISPLAY_HEIGHT       = const(176)

_BUFFER_SIZE          = const(77440) # _DISPLAY_WIDTH * _DISPLAY_HEIGHT * 2

# ILI9225 LCD Registers
_DRIVER_OUTPUT_CTRL  = const(0x01)  # Driver Output Control
_LCD_AC_DRIVING_CTRL = const(0x02)…

Replies: 4 comments 4 replies

Comment options

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

Comment options

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

@robert-hh
Comment options

@HLammers
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by HLammers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants