Since a few days I'm experiencing compile errors for ESP32 devices to which I want to add st7789_mpy.
The errors are like:
/home/rob/st7789_mpy/st7789/st7789.c: In function 'write_spi': /home/rob/st7789_mpy/st7789/st7789.c:127:66: error: 'mp_obj_type_t' {aka 'const struct _mp_obj_type_t'} has no member named 'protocol' mp_machine_spi_p_t *spi_p = (mp_machine_spi_p_t *) spi_obj->type->protocol; ^~
Since a few days I'm experiencing compile errors for ESP32 devices to which I want to add st7789_mpy. The errors are like:
/home/rob/st7789_mpy/st7789/st7789.c: In function 'write_spi': /home/rob/st7789_mpy/st7789/st7789.c:127:66: error: 'mp_obj_type_t' {aka 'const struct _mp_obj_type_t'} has no member named 'protocol' mp_machine_spi_p_t *spi_p = (mp_machine_spi_p_t *) spi_obj->type->protocol; ^~
Near the end of the listing a link appears: https://github.com/micropython/micropython/wiki/Build-Troubleshooting The text tries to explain the cause of the errors, but I'm afraid I'm stuck.
These types of errors appear only with ESP32-variants, not with TEENSY40 and Blackpill (stm32-F411CEU6).