First, I love the Xiao ESP32S3. I have used both the sense version and basic version. I have had plenty of success with it. That said, I have two cases with it that are confusing.
I will not post details, code or hardware specifics as these things would just clutter up my question.
Confusion 1: I used the sense version to create a 10 camera array that takes pictures at 3 second intervals. It works great. However, I started the project coding in VSCode, and could not get the autofocus to work. At some point I just tried the exact same code, libraries and hardware using the Arduino IDE, the autofocus worked perfectly?
Confusion2: I used a basic version to utilize an MS5837 pressure sensor. I could not get the sensor to work. From the prior experience as a random hail Mary pass, I copied the code into the Arduino IDE and imported the exact same libraries. In the Arduino IDE the code and sensor worked perfectly?
In both cases, I am using the same code, same libraries, and same hardware on the same day. The Arduino IDE works and VSCode does not? I have done multiple other projects that work fine in VSCode using these Xiao boards?
Does anyone else have similar experiences? Any solutions would be appreciated.