I want to use an ultra-sonic sensor and the led concurrently. I want the led to blink every 0.2 seconds and the ultra-sonic to measure distance without regard to the blinking.
The problem is I have the following code for blinking:
digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW); delay(200);
which makes the ultra-sonic sensor to be delayed as well, but I want it to keep measuring distance. Any tips?