DigitalWrite stop working after acceleration sensor begin

I have run examples of led blink with nicla sense digital port 0. It was working perfectly
But when i add BHY2 library and write Accelerometer.begin() in setup() code . Digitalwrite stops working and voltage on pin will be always high(3.2v). Please help me out

How have you determined digitalWrite() has stopped working?

Did you send digitalWrite(pin, HIGH)) in loop()?

Show your sketch and and a drawing of your project showing hardware connections.

1 Like

When you post your code and schematic please follow forum guidelines. How do you the pin is always high,have you measured it with a scope?