What is the earliest moment after startup to light a LED, and how do I get there?

In the 0.4.4 firmware, we have the STARTUP() macro that you can use for early execution, so you don’t have to change system mode:

void init_led()
{
    pinMode(D7, OUTPUT);
    digitalWrite(D7,HIGH);
}

STARTUP(init_led());
```

If you're using a Core, the 0.4.5 firmware will be released tomorrow.
2 Likes