I am struck with a simple board design problem.
The requirements are : I have a 4 position slide switch according to the position of the slide switch, I should turn on different colored LEDs and also vary the output frequency of 555 timer in astable mode and drive a piezo buzzer.
I plan to vary the output frequency by varying the resistor values connected to 555 timer.
Problem : I cant use the same switch to control LEDs and vary the resistor values. How to achieve this that is changing the switch position should select different LEDs and also vary the resistance, thus varying the frequency of 555 timer.