Code that "breaks" arduino

sbrown:
So... for example, in my code.. This:

  digitalWrite(12, HIGH); // 12 is red LED, no continuity

digitalWrite(11, LOW);  // 11 is green LED, continuity




becomes this?:



pinMode(12, INPUT_PULLUP); // 12 is red LED, no continuity
  pinMode(11, OUTPUT);  // 11 is green LED, continuity

no.
Those are the Arduino pins controlling the LEDs.
The Arduino pins we were referring to are pins that would be used on the cable wires instead of 5v.

I think you need to take a step back and think through the design and then figure out how you want to wire things up, including coming up with a real schematic, before you go in and start mucking with any code.

--- bill