Is there any way in Arduino to set a particular pin(pwm or not) to just generate a square wave out of the desired pin?
For instance, I want to have two pins on my Arduino Uno that output two square waves of 50% duty cycle with different frequencies. But at the same time i want my program to be doing something else. This means that bit-banging two pins in the loop() function just isn't really feasible.
Is there any way I can just set and forget a pin to output a wave?