问题标签 [platformio]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - 与路由器断开连接后如何恢复与主机的连接?
我在工作站模式下使用 Wroom-02 与我的服务器交换一些信息(我正在使用 SecureClient 库)。我正在尝试路由器已打开但与 Internet 没有连接的情况。当我重新建立路由器互联网连接时,模块不再连接到主机,并给出错误消息“未知错误代码”。如何在不重置的情况下解决它?
这是我正在使用的完整代码。
}`
c++ - 包含时的 Platformio 链接器错误
我在 Windows 10 上使用 PlatformIO(带有 VS Code 扩展),并且正在为 Teensy 3.5 板进行编译。
我已将我的一个项目中的链接器错误减少为以下代码:
当我尝试编译和链接它时,它编译得很好,但无法链接。如果我取消注释 Serial.println(),那么它会链接并编译。
我在 platformio.ini 文件中使用以下设置:
链接失败时给出的错误是:
c:/users/zackh/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none -eabi/lib/armv7e-m/fpu\libc.a(lib_a-writer.o):在函数_write_r':
writer.c:(.text._write_r+0x12): undefined reference to_write'collect2.exe中:错误:ld返回1退出状态
知道这里发生了什么吗?
visual-studio-code - VSCode 中的 PlatformIO
我用 PlatformIO 下载了最新版本的 VS Code,我还从 PlatformIO 库管理器下载了库 Mouse.h,即便如此,在我将代码上传到我的 Micro Pro 后,鼠标对操纵杆没有响应!但是当我通过 Arduino IDE 上传时,同样的代码可以工作!
我将 .platformio/lib 中的 Mouse.h 与 program files\Arduino\libraries 中的 Mouse.h 进行了比较 我将 .platformio/lib 中的 Mouse.cpp 与 program files\Arduino\libraries 中的 Mouse.cpp 进行了比较
他们有完全相同的代码!
这是我的 MICRO PRO 32u4 5v 的代码:
octave - 无法在 MacOS 上的 Atom 中显示 Octave 图形
terminal-plus我尝试了几种不同的终端实现,例如platformio-ide-terminal在 Atom (1.38.2) 上运行一些 Octave 练习。我注意到 Octave shell 运行正常,直到我尝试绘制任何东西。当我figure在 shell 中键入时,不会弹出任何窗口,终端中也不会出现错误或任何其他消息。然而一切都在 Mac (Mojave 10.14.5) 自己的终端中运行良好
visual-studio-code - preLaunch 询问“未定义”以退出代码 1 终止
我正在尝试在 Visual Studio Code 中调试以下代码。我收到以下错误,我不知道如何解决它。我会感谢你的帮助!
此代码应该提供以下结果:
我正在尝试编译代码以查看是否有任何错误,而我得到的只是以下错误消息:
preLaunchTask“未定义”以退出代码 1 终止。
让我选择Debug anyway,Show Errors或. 在我的 VS Code platformIO 和微控制器 ESP8266 的库中,我已经在我的 VS Code 上安装了微控制器的库。Open Launch.jsoncancelplatformIOESP8266
c++ - 无法使用 platformio 在库中包含 i2s.h
如果我尝试在图书馆中进行,则无法包含,但如果我在图书馆中进行,则效果很好main.cpp
这是树的输出(文件夹结构)
这是main.cpp
这是lib/Microphone.h
这是lib/Microphone.cpp
这是platformio.ini
这是我在构建时遇到的错误
我的设置
为什么我不能从自定义库导入?
build - Auto increment build number using PlatformIO
I have several micro controller projects for home automation. Each of my nodes have a version number which is manually set in the code. This version number is reported during the startup of the node to inform me which code is running.
Sometimes changing the version number is forgotten after making some changes in the code. So an automatic solution has to be found.
I have some idea about the solution:
- create a file (version.h): #define BUILDNO xxx
- include it in the relevant c codes
- auto increment xxx before every build
Can it be implemented? Or are there any other solutions with similar result?
esp8266 - 如何使用 platformio cli 更新到最新的 esp8266 arduino 框架?
根据pio docs,这应该有效:
这使得该版本看起来espressif8266是最新的 2.2.2,并且framework-arduinoespressif8266是最新的 2.20502.0。我希望其中一个与最近发布的esp8266/Arduino repo相对应,该版本目前位于 2.5.2。
是否有一些中间重新包装正在进行?如何确保我使用的是最新版本?
python - 如何在 Atom IDE/Platformio 中安装 pandas 库?
我必须将 pandas/ipython 用于我正在开发的数据分析应用程序,当我输入“pip install pandas/ipython”时,它会返回一个语法错误。
我已经尝试过“从熊猫安装熊猫”
点安装熊猫 pip 安装 ipython
我期望没有输出,但我得到了
文件“2app.py”,第 1 行 pip install pandas ^ SyntaxError: invalid syntax
有什么我可以做的吗?