Using PCA9865 PWM board and serial monitor at the same time

Hello,

I am working on my hexapod project, and want to send information about leg positions, error messages, etc. to my serial monitor.

I am not able to write to the serial monitor whenever the "pwm.begin()" is activated.

The PWM board uses I2C for recieving data, and I think that blocks the serial "prints".

Is there a way to work around this?

The code:

#include <Wire.h>
#include <Adafruit_PWMServoDriver.h>
#include <Servo.h>

Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x40);

void setup() {
pwm.begin();
Serial.begin(9600);
delay(2000);

Serial.println("I am not working :(");
}

void loop() {

}

Do you have the baud rate menu near the bottom right corner of Serial Monitor set to 9600?

Which Arduino board are you using?

Does the problem occur even without the PCA9865 connected to your Arduino board?

I don't own a PCA9865, but I just gave your sketch a try on my Nano and it works correctly.