Skip to content

Conversation

@dimajolkin
Copy link

@dimajolkin dimajolkin commented Jan 10, 2026

Hi! I tried to create a SPI, and it seems to have worked. I tested it on esp32s3-wroom1
I ran LILYGO T-Deck Plus.

image

It also changed to a gradual frequency increase. My esp32s3-wroom1 would freeze if I set it to 240 immediately.

@dgryski
Copy link
Member

dgryski commented Jan 11, 2026

/cc @ysoldak

@ysoldak
Copy link
Contributor

ysoldak commented Jan 13, 2026

Sorry, I have esp32c3 only, not "s", otherwise would help testing, of course.

@deadprogram
Copy link
Member

I have a esp32-s3 to test with, and will take a look.

@deadprogram
Copy link
Member

So far I have not been able to get SPI working on my Xiao ESP32s3 with this PR.

Any thoughts on this @dimajolkin ?

@dimajolkin
Copy link
Author

dimajolkin commented Jan 14, 2026

I will check docs for this MC) And order this for test

@deadprogram I made a quick fix to the frequency calculation. Can you check it?

@dimajolkin
Copy link
Author

dimajolkin commented Jan 14, 2026

I've placed an order for this MK. When it arrives, I'll debug it for him too, if the fix doesn't work.

Additions:

const (
	TFT_SCLK machine.Pin = 7 // SCK - Serial Clock (GPIO7)
	TFT_MOSI machine.Pin = 8 // MOSI / SDO (GPIO8)
)

func main() {
	spi := machine.SPI1
	spi.Configure(machine.SPIConfig{
		SCK:       TFT_SCLK,
		SDO:       TFT_MOSI,
	})

7, 8 - pins tested too

@deadprogram
Copy link
Member

@dimajolkin looks like you need to run the linter:

Unformatted:
  src/machine/machine_esp32s3_spi.go
make: *** [GNUmakefile:207: fmt-check] Error 1

@dm-vev
Copy link

dm-vev commented Jan 20, 2026

Hi, thanks for the SPI work and the T-Deck test.

Could you please share the test code you used to drive the display on the T-Deck (the one shown in the screenshot)?
I’d like to use the same code for testing.

@dimajolkin
Copy link
Author

Hi, thanks for the SPI work and the T-Deck test.

Could you please share the test code you used to drive the display on the T-Deck (the one shown in the screenshot)?

I’d like to use the same code for testing.

Hi, for tdeck need specific driver, you can find here:
https://github.com/dimajolkin/tinygo-lilygo-drivers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants