I am not very experienced with avr microcontrollers but I need to code the following program for ATmega328 microcontroller:
When I press the 1st pushbutton, i would like to have 3V on the output pin 1.
And when I press the 2nd push button, I would like to have 3V on the output of the 2nd pin.
How could I code something like that with my microcontroller ? And which components do I need to add for that ( which component should I use to amplify the output voltage when the pushbutton is pressed)?
What is the voltage at the output pin of those micro controllers generally?