I can successfully flash some esp01s
boards using this config:
[env:esp01]
platform = espressif8266
board = esp01
framework = arduino
IIUC the board is basically the same as the esp01
- except that it only has a single LED.
Since the blue LED should be available on pin 2, I tried this blink program:
#include "Arduino.h"
#define LED 2
void setup()
{
pinMode(LED, OUTPUT);
}
void loop()
{
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
But no matter whether it’s pin 1 or pin 2, the LED refuses to blink.
It does blink during the flashing though.
Could this be a problem with the board definition?