Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Open the 01bsp_gpio_in.c file.

Which pin is configured as INPUT in the code?

Answer 1:

Connection

  1. Connect the nRF52840-DK to the AIOT Play

  2. Put batteries in the AIOT Play

  3. Plug in the nRF52840-DK

  4. Switch the nRF52840-DK on

  5. In Segger, select “Build and Debug” which will compile the project and load the resulting binary on the AIOT Play

  6. Set a breakpoint in the code by clicking on a source code line number

  7. Take a jumper cable and connect the pin you identified with GND

  8. Now, connect the jumper to 3.6 V

Where did you set the breakpoint to see the changes on the GPIO?

Answer 2:

What is the level of the GPIO when there is no jumper cable connected?

...

Answer 3

Tip

Crash course

Pull-up and pull-down GPIO modes