Hi,
Look at the IDE Example "Blink without Delay".
This will let you have the LED blinking while still checking and responding to the button press.
Is this a class project/practical?
You can only give the impression of multitasking as the code is a serial process.
Tom.. ![]()