Hello I am trying to use my arduino nano with platfomio for first time but I am having some troubles, seems the code compiles and flash correctly but the response of the arduino is not what I expected, LED does not blink or blinks too fast and the serial communication prints incorrect messages, also this code works with arduino ide.
Thank you
platformio.ini
[env:nanoatmega328new]
platform = atmelavr
board = nanoatmega328new
framework = arduino
main.cpp
#include <Arduino.h>
#define LED 13
void setup() {
Serial.begin(9600);
pinMode(LED, OUTPUT);
}
void loop() {
Serial.println(“Hello world”);
printf(“Hello world”);
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
// put your main code here, to run repeatedly:
}