ESP32_NEW_SPI_MASTER_EXAMPLE
ESP32_NEW_SPI_MASTER_EXAMPLE copied to clipboard
error: designator order for field does not match declaration order in 'spi_lobo_bus_config_t'
Hello and thank you for your work,
I'm just leaving this here as I was stomped by agressive error checking and it took me a while to find the solution, mild dyslexia on my part.
I get this error when compiling the code into a project :
"error: designator order for field 'spi_lobo_bus_config_t::mosi_io_num' does not match declaration order in 'spi_lobo_bus_config_t'"
The solution is inverting the two 'mosi' and 'miso' lines at the spi_lobo_bus_config_t struct. You'll see a similar declaration order error below in the spi_lobo_device_interface_config_t struct. I think the 'mode' asks to be defined before the rest.
I'm a beginner so I hope this helps someone else. ++
p.s. Is there a way to reduce the screen resolution in order to speed up the writings to it ? I have a TTGO ST7789V