I am unable to get code to execute on a Sparkfun ESP32-S2 Thing Plus even after reloading Visual Studio Code and Platformio.
My platformio.ini looks like:
[env:sparkfun_esp32s2_thing_plus]
platform = espressif32
board = sparkfun_esp32s2_thing_plus
framework = arduino
and I am simply trying to blink the onboard LED and output to serial port, both of which don’t work.
If I use the same code on the Arduino IDE it works as expected. I have tried uploading using two different devices and neither work. The code is:
#include <Arduino.h>
int ledPin = 13;
void setup()
{
pinMode(ledPin, OUTPUT);
Serial.begin(115200);
}
void loop()
{
Serial.println(“Hello, world!”);
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(500);
}
Any help or suggestions would be greatly appreciated.
Thanks
Robert