I need to switch an LED and beeper on for 3,000ms then switch it off, without stopping the processing of my mega. But the catch is that the code to call this cannot be inside the main loop. So the BlinkwithoutDelay example cannot work for me as it is.
I have an RFID reader that reads the tags of animals coming through a shoot, sometimes at speed. Once an animal comes through that is marked to be drafted, the LED and beeper comes on for three seconds but the unit needs to be free to read and process the next incoming RFID tags as they come in. The code that reads and processes the RFID's is already within the loop, so inserting a BlinkWithoutDelay type instruction inside the already existing code will cause a delay in processing.
Not sure if I'm making enough sense to get the help I need.
Code coming below.