const int ledPins[] = {2, 3, 4, 5}; 
const int numleds = 4;2

void setup() {
  for (int i = 0; i < numleds; i++) {
    pinMode(ledPins[i], OUTPUT);
    digitalWrite(ledPins[i], LOW);
  }
}
void loop() {
  for (int i = 0; ; i++) { 
    if (i > 15) { 
      delay(2000);
      i = 0;
    }
    binaryled(i); 
    delay(1000);
    binaryled(~i & 0b1111); 
    delay(1000);
  }
}
void binaryled(int num) {
  for (int i = 0; i < numleds; i++) {
    digitalWrite(ledPins[i], num % 2);
    num = num / 2;
  }
}
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT