Hi, I am new to using these sorts of things and only interested in the programming for this project I'm making. I need a button connected via a breadboard to type the letter 'g' when pressed. I would like to make sure the circuit is correct and what code I would need. I have one pin of the button connected to 5v via a 2.2 KOhms wound resistor, the other pin connected to Ground and one pin further than the first (on the breadboard) connected to the 7 pin.
Thanks and I hope this makes sense.