ESP32DMASPI在Ardunio Uno担任SPI大师

发布于 2025-02-04 12:50:49 字数 210 浏览 4 评论 0原文

我正在尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

祁梦 2025-02-11 12:50:49

您正在使用的库, 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文