change pullup diagram to remove 5v connection

When connected with 5v serial stops after first press of the button.
Just connectiong ground and pin with pull up called in code makes it
work like external resistor