going crazy! only pin2 working on arduino

hello folks,

i completely don’t understand what’s going on. i’m very new to arduino and bought a nano the other day. somehow, only pin2 seems to work!
the setup is probaly irrelevant: i have a drum-machine with trigger-ins (pins for each drum) that need 5V. each of the drum-machines pin (ergo drum-sounds) works when i connect pin2 from the arduino – how ever no other pin on the ardunino seems to output anything.

edit: probably useful to connect the pins. me stupid. problem solved.

code is super simply for now:

void setup() {
  pinMode(2,OUTPUT);  
  pinMode(3,OUTPUT);
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);  
  pinMode(7,OUTPUT);
  pinMode(8,OUTPUT);
  pinMode(9,OUTPUT);
  pinMode(10,OUTPUT);
  pinMode(11,OUTPUT);
  pinMode(12,OUTPUT);
  pinMode(13,OUTPUT);
  int i = 2;
  

}

void loop() {
  for (int i = 2; i <= 13; i++) {
  digitalWrite(i, HIGH);   
  delay(10);        
  digitalWrite(i, LOW);   
  delay(200);  
  }

}

note: pin13 (led on the arduino) does flash up.

any help would be incredible.