I’m not very experienced with coding, but basically what I am trying to do is have my arduino uno receive continuous TTL pulses from a spectrometer (through the RX pin). The code will need to have the arduino uno take in the first TTL pulse from the spectrometer and send it through via the TX pin (to an LED controller). Then after the first TTL pulse is received and transmitted by the arduino uno, then I’d want the code to ignore all the other TTL pulses after that. Also, I want to have a reset button to click which would start the code over again. I started the code like this:
Boolean status_button = HIGH
If (status_button == LOW, ignore TTL after)
Sorry about the syntax - as I said, I am new to coding. This shouldn’t be too difficult a code to write, but I’m still learning. Thanks for the help in advance.