Is there some popular, well maintained library for controlling LED brightness (dimmer) while also optionally enabling strobe i.e. flashing effect ? Ideally, this library should be able to coexist with other functions that need to be invoked from the main loop(), that too are to be repeatedly invoked, and should not prevent usage of delay() and delayMicroseconds().
The definition and the usefulness of the delay() function is that it stops program execution and waits. To ask it to do something different, breaks that definition, so the code that uses it would no longer have any logical foundation. Think about it for a while.
You probably don't need a library but you MIGHT want to write a function (or two).
Dimming is built-in with analogWrite(), unless you are using addressable LEDs.
A function is similar to a subroutine in other languages (like BASIC). When you call the function the code takes a "detour" to run the code in the function and the returns where it left-off.
The examples in that link are for ANSI / ISO standard C and they will not run on the Arduino. But the structure is the same with a function prototype, a function definition, and one or more function calls.
A function can also return ONE value, or pointer to an array, etc.
The function can be conditionally called (with an if-statement and millis(), etc.)
Thank you all. Managed to do the mixed brightness control (using PWM pin) and strobe-effect (flashing) using the logic found in "blink without delay". It works perfectly, and is quite simple, once understood.