设置 VS Code 以与 A-Star 模块配合使用

发布于 2025-01-17 10:28:32 字数 527 浏览 2 评论 0原文

我正在尝试设置当前使用A-Star 3.3V模块的VS代码。我已经有效地上传了在Arduino IDE上上传的代码,但是我遇到了一个错误(请参见下文)。我已经进行了一些谷歌搜索,无法找到有效的解决方案,因为其中大多数涉及确保正确配置的董事会和端口,但是我已经做到了(据我所知)。

[错误]上传草图“ Tuya-a-star.ino”:带代码= 1的退出

我在下面包含了一些不同的内容,因此您可以看到我的意思,我希望我在这里错过了一些小东西。正确的板和版本也是正确的端口。我还为C/C ++配置选择了Arduino类型。

arduino.json文件

{
“configuration”: “version=8mhz”,
“board”: “pololu-a-star:avr:a-star328PB”,
“output”: “…/ArduinoOutput”,
“programmer”: “pololu-a-star:stk500for328PB”,
“sketch”: “tuya-a-star.ino”,
“port”: “COM4”
}

I am trying to set up vs code currently to work with my a-star 3.3V module. I have code already working that I have uploaded successfully on the Arduino IDE, but I run into an error (see below). I have done some googling and wasn’t able to find a solution that worked, as most of them involved ensuring the board and ports were configured correctly, but I have already done that (to the best of my knowledge).

[Error] Uploading sketch ‘tuya-a-star.ino’: Exit with code=1

I have included some of the different things below so you can see what I mean, I am hoping I have missed something small here. The correct board and version is also selected as is the correct port. I have also selected the Arduino type for the C/C++ configuration.

arduino.json file

{
“configuration”: “version=8mhz”,
“board”: “pololu-a-star:avr:a-star328PB”,
“output”: “…/ArduinoOutput”,
“programmer”: “pololu-a-star:stk500for328PB”,
“sketch”: “tuya-a-star.ino”,
“port”: “COM4”
}

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文