PlatformIO Community

Framework esp8266-rtos-sdk and MCP2515

Hello,
i´m using a wemos d1 mini board, i use esp8266-rtos-sdk as framework with espressif8266 platform. But have a MCP2515 shield and installed CAN library (by Sandeep Mistry). The problem is “fatal error: CAN.h: No such file or directory”
Any solution for this? Or other library compatible with esp8266-rtos-sdk.

Regards

Link to library please? Is it https://github.com/sandeepmistry/arduino-CAN? If yes, the library is, as it states, meant for Arduino. I didn’t quickly find a version for esp8266-rtos-sdk but you could take the library’s code and rewrite to use the frameworks’ SPI function, as outlined in e.g. this SPI example project (https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/examples/peripherals/spi_oled)