设置 VS Code 以与 A-Star 模块配合使用
我正在尝试设置当前使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论