WEMOS D1迷你气泡软件har.h目前尚未发现但找不到

发布于 2025-02-10 23:33:14 字数 567 浏览 3 评论 0 原文

我购买了

目前正在工作。我更改了一些代码。我现在想上传此代码,但是我会收到错误

AirGradient.h:10:28: fatal error: SoftwareSerial.h: No such file or directory

,我不知道为什么会这样,因为它以前工作正常,并且我的 softwareserial.h 位于/home/home/home/user /downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/arduino/avr/avr/libraries/softwareserial/src/softwareserial.h

我在Ubuntu Linux 22.04下使用Arduino IDE。

搜索路径是否以某种方式配置不正确?我该如何解决?

I bought the Airgradient DIY as demonstrated in https://www.youtube.com/watch?v=Cmr5VNALRAg

It's working at the moment. I changed some code. I now want to upload this code but I get the error

AirGradient.h:10:28: fatal error: SoftwareSerial.h: No such file or directory

I have no idea why this is happening because it used to work just fine before and I have SoftwareSerial.h located at /home/user/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/arduino/avr/libraries/SoftwareSerial/src/SoftwareSerial.h.

I am using the Arduino IDE under Ubuntu Linux 22.04.

Are the search paths somehow not configured properly? How do I solve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

不奢求什么 2025-02-17 23:33:14

好的,在说什么之前,我不建议我最大的敌人使用 arduino IDE进行工作。但是我知道有恋人,我只是一个。

但是我看不到任何建议:

  • 下载VScode。
  • 安装平台。

继续前进。

您的Arduino IDE希望您将库文件安装在< Sketchbook-location>/libraries 文件夹中。

您可以在首选项下在Arduino IDE中找到 Sketchbook-Location 的路径。

它应该是第一项。

如果您的Sketchbook-location与您在问题上粘贴的路径匹配,则 /home/user/downloads/arduino-1.8.19-19-linux64/arduino-1.8.19/hardware/arduino/arduino/arduino/avrino/avr/avr/code>,然后,我只尝试一次删除软库,然后使用库管理器重新安装它。

不要忘记将板类型更改为ESP8266(或WEMOS D1)。

如果这些都没有用,只需遵循我的建议列表即可。

Ok, before saying anything, I wouldn't recommend my worst enemy to use Arduino IDE to do work. But I know there are lovers, I just ain't one.

But I can't see this without leaving some Suggestions:

  • Download VSCode.
  • Install PlatformIO.

Moving on.

Your Arduino IDE expects you to have your library files installed in the <sketchbook-location>/libraries folder.

You can find the path to your sketchbook-location in Arduino IDE under Preferences.

It should be the first Item.

If your sketchbook-location matches with the path you pasted on your question, /home/user/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/arduino/avr/, then I would just try to delete the SoftSerial library at once and reinstall it using the Library Manager.

Don't forget to change the board type to ESP8266 (or wemos D1).

If none of that works, just go with my list of suggestions.

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