Serial hangs after digitalWrite()

maozet:
3) Well...

#define UP_OUTPUT 8

#define DOWN_OUTPUT 7

void goUP() {
  digitalWrite(UP_OUTPUT, LOW);
  delayMicroseconds(100);
  digitalWrite(DOWN_OUTPUT, HIGH);
  if(debug==1) {
    Serial.println("moveUP");
  }
}





The last output i see over serial is "moveUP", then if I reconnect (serial port) then I can see it wasn't hanged.

Seems like a power problem to me. Whatever is connected to pin 7 does something bad when you turn it on.

In general there's no way Serial.println() can hang.