I was so excited to get my code working with everything hooked up to a breadboard, but when I made my connections to the Arduino Mega, my LEDs and push button quit working correctly. My OLED display shield takes up half of my pins, so I am having to combine GROUND and POWER of the LEDs and push button to one pin, while my pressure transducer is taking up the remaining ground and power pins. (see diagram attached).
How do I fix this obvious issue the LEDs and push button have with each other sharing a 5V pin and Ground pin?
sketch_nov02a.ino (6.67 KB)