Questions tagged [vscode]

10 questions
5
votes
1 answer

VSCode vs. Arduino IDE - same program, different behavior

I've got this simple program for testing DS18B20 temperature sensors. #include "OneWire.h" #include "DallasTemperature.h" #define ONE_WIRE_BUS D3 // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas…
Llaves
  • 261
  • 3
  • 11
4
votes
1 answer

Help solving "collect2.exe: error: ld returned 1 exit status" error in code

I just got an Elegoo UNO starter kit the other day and have been working my way through the little tutorials on all the parts it came with. I am using VSCode with Platform.io plugin and (after getting it set up) it has been working nicely. The code…
wileyrivers
  • 61
  • 1
  • 1
  • 5
3
votes
4 answers

esp32, platformio A fatal error occurred: Packet content transfer stopped (received 8 bytes) *** [upload] Error 2

When i try to upload code to the esp32 the following error shows up in the command line: A fatal error occurred: Packet content transfer stopped (received 8 bytes). I use platformio in VScode the platform.ini file looks like this: …
exo
  • 67
  • 1
  • 1
  • 5
2
votes
1 answer

Why is sensitivity (threshold) parameter ignored

Analog pontentiometer connected to an Arduino. simplest possible setup. The goal is to send a message over Serial whenever the value changes. I do not want to spam the Serial connection to much, so the value has to change by at least 20 (sensitivty…
David
  • 125
  • 5
2
votes
3 answers

Using Visual Studio Code to program an Arduino

I had recently got an Arduino Uno and did quite a few programs on it. Now, I had always used Visual Studio Code to do my C projects. So, is it possible to use Visual Studio Code to program an Arduino, but without the Arduino plugin available in…
Samuel R
  • 31
  • 1
  • 3
2
votes
0 answers

Stop VSCode/Arduino add-in from sending reset signal in the event of compile errors

This is more of an annoyance, but if I edit a program with the serial monitor open, click "upload", and the compile fails, the IDE switches to the serial monitor pane, opens the serial port which triggers a reset, and the last successfully uploaded…
Llaves
  • 261
  • 3
  • 11
1
vote
0 answers

How can I get the serial monitor in vs code to automatically connect and disconnect when uploading to my arduino?

I am using an Arudino Nano with VS Code and PlatformIO. When developing. I want to streamline the process so that when I press 1 hotkey. It will automatically disconnect the Serial Monitor. Build. Upload. Then reconnect the Serial Monitor. I can…
John
  • 123
  • 4
1
vote
1 answer

Compiling for Wemos D1 mini with Visual Studio Code

I'm giving Visual Studio Code (VSC) a try and am getting unexpected results. I have a program (sketch) that compiles fine in the Arduino IDE. I create a workspace in VSC, initialize the project, and after some more mucking about I get a compile…
Llaves
  • 261
  • 3
  • 11
0
votes
0 answers

Visual Studio Code - intellisense issue

Just started with Arduino Community Edition for Visual Studio code. I can select the com-port, Arduino model, build and upload the code all is working fine. I have a intellisense problem I am not able to solve. I got errors for all my includes,…
0
votes
1 answer

Best way to "hack" a library without forking it

I'm using Visual Studio Code and PlatformIO. I added some libraries to my project using platformio.ini: lib_deps = olikraus/U8g2@^2.34.4 crankyoldgit/IRremoteESP8266@^2.8.4 plerup/EspSoftwareSerial@^6.16.1 …
Mark
  • 393
  • 2
  • 14