HI
I am trying to interface ads1231 with nrf5340. Regards I need to know about Gpio read. Because ADS1231 gives digital output. I don't know how to read actually. Kindly help me regards
Thanks & Regards
Navin
HI
I am trying to interface ads1231 with nrf5340. Regards I need to know about Gpio read. Because ADS1231 gives digital output. I don't know how to read actually. Kindly help me regards
Thanks & Regards
Navin
Hello, Mr, NCK!
Could you have a look at hmolesworth answer in this case for a suggestion on how you can interface with the device? For suggestions on how to use GPIO with Zephyr I suggest that you check out one of the basic samples.
Best regards,
Carl Richard
Hi Carl,
Thank you, for your response. I need to configure the GPIO as input and I need to read the digital signal via GPIO
. In the given samples GPIo as config as Output but I didn't see any Input Configuration. For this, Kindly tell me the procedure
Thanks & Regards
Navin
Hello again!
In order to configure GPIO as input you should only have to do something like this:
ret = gpio_pin_configure(gpio, pin, GPIO_INPUT | flags); if (ret < 0) { LOG_ERR("Failed to configure pin %u, error: %d", pin, ret); return ret; }