The nRF9160 DK has an I/O expander that can optionally be used to interface the LEDs, slide switches, and buttons.
Any sample code available on how to interface to the I/O expander.
The nRF9160 DK has an I/O expander that can optionally be used to interface the LEDs, slide switches, and buttons.
Any sample code available on how to interface to the I/O expander.
Hello Francis,
I will check if anything else is available. Will you be interfacing the I/O expander from nRF9160 or from nRF52840? So far I have only found the PCAL6408A driver for nRF5 SDK, v17.0.2.
Best regards,
Håkon
Hello Håkon
I plan to use the I/O expander from nRF9160.
Thanks.
How do you intend to use the I/O expander? Is your goal to operate and interact with the LEDs, slide switches and buttons? Or are you looking for detailed control of the I/O expander itself?
If the goal is to operate the LEDs, slide switches and buttons then basic Zephyr samples such as Blinky and Button are available. The button and LED definitions of nRF9160 DK can be found in boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_common.dts.
I am working on a client demo using the nRF9160 DK. The demo includes an arduino relay board with required pins same as the led's, slider and buttons on the DK. To enable the arduino board I had to configure the arduino config on the pins. (CONFIG_BOARD_NRF9160DK_LED1..4_ARDUINO=y...)
This leaves me with no led's or input to complete the demo.
Thank you for the explanation. I am looking for a solution.