I am trying to generate a TTL signal to trigger some device. Currently I am using the following code to generate and output the square wave. However, I do not have an oscilloscope to observe the actual waveform and if I were to use a multimeter to measure the output, I can only see the last value. Is there any way to verify the output waveform is actually what I wanted?