How to read data from GPIO pin?

I am having a N20 Micro Gear Motor with Encoder, I want to read data of c1 and c2 using GPIO pins. Any specificAPI, method or suggestion for this?

I am using nRF5340 along with N20 Micro gear motor, I want to control motor direction, and rotate the motor based on the data coming from the Encoder. Encoder is updating data using c1 and C2 channels.

Parents Reply Children
No Data
Related