Thanks! That workaround works.
You only see the brief flash when applying power or when the IDE uploads the code and hard resets via RTS.
If you do this:
#include <M5StickCPlus.h>
void setup() {
M5.begin();
digitalWrite (M5_LED, HIGH); // turn off the LED
pinMode(M5_LED, OUTPUT);
digitalWrite (M5_LED, HIGH); // off
}
void loop() {
delay(10);
ESP.restart();
}
the LED does not flash repeatedly.