When I try to use this in Platform IO (and even Arduino 2.0 as well) it does not compile somehow (chip is a ESP32S3).
There are some issues concerning VSPI, HSPI and ..._HOST
It seems like there is only Platform IO support <=3.0.4 and there is an issue regarding non-definition of the above, but from what I've understood, it should have been fixed now...
Any way to resolve this?
Regards and thank for the great work.
In file included from C:\Users\Lenna\AppData\Local\Temp\.arduinoIDE-unsaved2023320-24160-1bedekr.9k1u\sketch_apr20a\sketch_apr20a.ino:1:
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:52:29: error: 'HSPI_HOST' was not declared in this scope
spi_host_device_t host {HSPI_HOST};
^~~~~~~~~
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:52:29: note: suggested alternative: 'SPI3_HOST'
spi_host_device_t host {HSPI_HOST};
^~~~~~~~~
SPI3_HOST
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:52:38: error: cannot convert '<brace-enclosed initializer list>' to 'spi_host_device_t' in initialization
spi_host_device_t host {HSPI_HOST};
^
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h: In member function 'bool arduino::esp32::spi::slave::Slave::begin(uint8_t)':
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:59:43: error: 'VSPI' was not declared in this scope
bus_cfg.mosi_io_num = (spi_bus == VSPI) ? MOSI : 13;
^~~~
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:59:43: note: suggested alternative: 'SPI'
bus_cfg.mosi_io_num = (spi_bus == VSPI) ? MOSI : 13;
^~~~
SPI
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h: In member function 'bool arduino::esp32::spi::slave::Slave::initialize(uint8_t)':
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:173:36: error: 'HSPI_HOST' was not declared in this scope
host = (spi_bus == HSPI) ? HSPI_HOST : VSPI_HOST;
^~~~~~~~~
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:173:36: note: suggested alternative: 'SPI3_HOST'
host = (spi_bus == HSPI) ? HSPI_HOST : VSPI_HOST;
^~~~~~~~~
SPI3_HOST
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:173:48: error: 'VSPI_HOST' was not declared in this scope
host = (spi_bus == HSPI) ? HSPI_HOST : VSPI_HOST;
^~~~~~~~~
c:\Users\Lenna\Documents\Arduino\libraries\ESP32SPISlave/ESP32SPISlave.h:173:48: note: suggested alternative: 'SPI3_HOST'
host = (spi_bus == HSPI) ? HSPI_HOST : VSPI_HOST;
^~~~~~~~~
SPI3_HOST
exit status 1
Compilation error: exit status 1
Trying the suggested alternatives does not resolve the issue :(
When I try to use this in Platform IO (and even Arduino 2.0 as well) it does not compile somehow (chip is a ESP32S3). There are some issues concerning VSPI, HSPI and ..._HOST
It seems like there is only Platform IO support <=3.0.4 and there is an issue regarding non-definition of the above, but from what I've understood, it should have been fixed now...
Any way to resolve this?
Regards and thank for the great work.
Trying the suggested alternatives does not resolve the issue :(