How to edit GPIO pin element values

nRF Connect for VS Code

tags
nRF Connect for VS Code

To edit GPIO pin element values, complete the following steps:

  1. Open the Peripherals View using the switch at the bottom right corner of the Editor.
    View switch
  2. Select a node that can have GPIOs assigned. For example, one of the nodes of the buttons or leds drivers. You can do this from the Peripherals View or from the Nodes View. The Nodes View list is more comprehensive.
    The Node Inspector panel is updated.
  3. In the Node Inspector, open the Pins tab to display the information about the node.

    Example: Details about the pin elements of a button0 node

  4. Select the desired value for each of the options by clicking the icons next to the pin assignment drop-down menu.
    The icons change based on the selected value.

  5. Select the pin control state or add a new one if needed using the Add Pin State button.
  6. Save your changes either in the editor or in the devicetree file.