

Visit this link for a detailed comparison between ATM & VS CODE Editors Platform IO on VSCODE is the next generation IOT IDE which supports programming of a wide range of boards like Arduino, ESP32,STM32 & NUCLEO. īut ATOM editor requires CLANG installation for Code completion facility. Instead of VS CODE, we can use ATOM Text editor. The PlatformIO supports many Platforms, Frameworks, Boards like Arduino, ESP32, ESP8266,STM32,NUCLEO and includes examples and libraries. The Platform IO is a Python based open source ecosystem for IoT development and a cross platform IDE with a unified debugger. VS Code is an advanced Text Editor on which we install PLATFORM IO EXTENSION and use it as IDE to program ESP32. VS CODE is a lightweight but powerful source code editor which is available for Windows, macOS and Linux. Platform IO installed over VISUAL STUDIO CODE. This post is on a More powerful and advanced IDE Platformio.ini am confident I have the same librarys loaded in each environment.In previous posts we programmed ESP32 by Arduino IDE. It prints “Could not find a valid BME280 sensor, check wiring!” in the serial monitor. Serial.println(“Could not find a valid BME280 sensor, check wiring!”) Then I run this code ( same intended functionality ) from VSCode/PlatformIO : To me this proves the ESP is ok, the BME is ok and the wiring ok ? Serial.print(bme.readAltitude(SEALEVELPRESSURE_HPA)) Serial.print(bme.readPressure() / 100.0F)


Serial.print(1.8 * bme.readTemperature() + 32) Serial.println(“Could not find a valid BME280 sensor, check wiring!”) (you can also pass in a Wire library object like &Wire2) The data looks correct and varies as expected. Running the following code from the Arduino IDE I get the sensor data output to the serial monitor as expected implying thew sensor is found ok. I have an Expresiff ESP32-S breadboarded with an BME280 sensor connected as per the BuildWeb Servers tutorial. I am probably missing something really obvious, but have hit a dead end trying to resolve issue this so hoping you guys can help !
