ESP32DMASPI在Ardunio Uno担任SPI大师
我正在尝试使用hideakitai/esp32dmaspi配置 arduino uno 我选择Arduino板,它显示出错误。
错误 - 致命错误:驱动程序/spi_master.h:没有这样的文件或目录,
我搜索了很多有关问题的信息对于驱动程序/spi_master.h 库,但没有获得适当的帮助。
I am trying to configure Arduino uno as SPI-master and ESP32 as SPI-slave using hideakitai/ESP32DMASPI , when I am compiling the code for esp32 it is compiling successfully but when I select Arduino board it is showing an errors.
The error - fatal error: driver/spi_master.h: No such file or directory
I searched a lot about the issue & for driver/spi_master.h library, but not getting the proper help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在使用的库, hideakitai/esp32dmaspi 是为ESP32写的,不是Arduino uno。
Arduino Uno与ESP32完全不同,并且使用了Arduino框架的完全不同的实现。 UNO的低级硬件(SPI,DMA,I2C等)与ESP32不同。您正在使用的库不打算在Arduino Uno上工作,正如您所看到的那样。
您需要找到一个支持UNO或了解有关低级编码的库,并重写您要使用的库来与UNO一起使用。
The library you're using, hideakitai/ESP32DMASPI is written for the ESP32, not the Arduino Uno.
The Arduino Uno is completely different processor from the ESP32 and uses a completely different implementation of the Arduino framework. The Uno's low level hardware (SPI, DMA, I2C, etc) is different from the ESP32's. The library you're using is not intended to work on the Arduino Uno and as you've seen it does not.
You need to find a library that does support the Uno or learn a whole lot about low level coding and rewrite the library you're trying to use to work with the Uno.