We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59250bd commit 7a70bf2Copy full SHA for 7a70bf2
main/src/chip/spi.c
@@ -36,10 +36,11 @@ void hspi_init(void)
36
spi_device_interface_config_t devcfg = {
37
.mode = 0, // SPI mode 0
38
.spics_io_num = CONFIG_SPI_CS_PIN, // CS pin
39
- .clock_speed_hz = 40000000, // Clock out at 40 MHz
40
#ifdef CONFIG_SCREEN_PANEL_ST7735
+ .clock_speed_hz = 26000000, // Clock out at 26 MHz
41
.pre_cb = st7735_setpin_dc, // Specify pre-transfer callback to handle D/C line
42
#elif defined(CONFIG_SCREEN_PANEL_ST7789)
43
+ .clock_speed_hz = 40000000, // Clock out at 40 MHz
44
.pre_cb = st7789_setpin_dc, // Specify pre-transfer callback to handle D/C line
45
#endif
46
.queue_size = 2, // We want to be able to queue 2 transactions at a time
0 commit comments