Thread for blinking LED?

i am going to write a little application which has an “initialization” phase.
this phase should end when the user entered some values in a web ui.
does it make sense to use a thread to show the user that his device is in the initialization phase (blinking the onboard LED) ? or is there another, better way to do so?
the device is an argon

Which onboard LED do you meant?
The D7 LED or the RGB LED?
For RGB LED patterns you could use this

For simple D7 blink patterns you could use a Software Timer instead of spinning up a dedicated thread that cannot be stopped once it’s started.

For really trivial blink patterns you could even do something like this

void setup() {
  pinMode(D7, OUTPUT);
void loop() {
  digitalWrite(D7, (millis() >> 3) & 0x88); // >> 3 for speed / & 0x88 for pattern 
1 Like