Serial communication between "Arduino NANO33 Iot" and "Arduino NANO 33 BLE"

このプログラムを「Arduino NANO33 Iot」にアップロードしました

int LED = 13;
int count = 0;

void setup(){
  Serial.begin(9600);
  pinMode(LED, OUTPUT);
}

void loop(){
  count++;
  Serial.write(count);
  
  if((count % 2) == 1){ 
    digitalWrite(LED, HIGH);
  }else{
    digitalWrite(LED, LOW);
  }
  delay(1000);
}

このプログラムを「Arduino NANO 33 BLE」にアップロードしました

int LED = 13;

void setup(){
  Serial.begin(9600);
  pinMode(LED, OUTPUT);
}

void loop(){
  while(Serial.available()){
    byte inChar = (byte)Serial.read();
    if((inChar % 2) == 1){ 
      digitalWrite(LED, HIGH);
    }else{
      digitalWrite(LED, LOW);
    }
    delay(10);
  }
}

RXpinとTXpinを接続しました。
しかし、「Arduino NANO 33 BLE」の LEDは点灯 しませんでした。

Please describe the exact wiring connections between the two boards.

connected RXpin of "Arduino NANO33 Iot" and TXpin of "Arduino NANO 33 BLE".
connected RXpin of "Arduino NANO 33 BLE" and TXpin of "Arduino NANO33 Iot".

The RX and TX pins on the Nano 33 IoT and the Nano 33 BLE are Serial1, not Serial. So you need to change all instances of "Serial" in both sketches to "Serial1".

You should also connect the GND pins of the two boards.

thank you
I will try