Thanks RPCoyle. I was able to confirm all the pins work fine.
I suspect an issue in my old circuit where the ground of arduino, battery and motor might have not been connected together.
Thanks RPCoyle. I was able to confirm all the pins work fine.
I suspect an issue in my old circuit where the ground of arduino, battery and motor might have not been connected together.