This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to fully configure i2c sensor working with NCS bluetooth?

We are in the process to add spectral sensor to zephyr based BLE sample, but following the tutorial to add overlay or copying other sensor configurations not helped much. Either it causes device tree error or some configuration error or label not registered.

Please help find any suitable guide to know all modifications needed to make new sensor visible for main script in BLE.

Thank you.

Parents Reply
  • Also, how to configure any GPIO PIN as INPUT or OUTPUT with Zephyr.

    device_get_bindig('GPIO_0') is successful, but gpio_pin_configure(dev,20,GPIO_OUTPUT_ACTIVE/GPIO_OUTPUT_LOW/GPIO_OUTPUT) and gpio_pin_set(dev,20,1) is not working.

    I am trying to set pin number 20 in NRF52840. But it is not working. I am unable to find any suitable example to fix this issue. Please help out.

Children
No Data
Related