Lab 22. OAP GPIO get

Expected completion time of this lab: 20 min.

Enable the D0 GPIO

This step enables the GPIO input pin. It is a required step for reading its value or activating notifications.

The D0 GPIO corresponds to the DP2 pin on the DC9003 SmartMesh Eval/Dev Mote.

Read the value of the D0 GPIO

  • create a flow which issues:

  • Issue the command to your mote
  • What is the state (value) of your pin?

    Answer 2:


  • Connect a jumper between the DP2 and VSUPPLY pins. Make sure you can read the value of digital_in/D0 to be high.

  • Connect a jumper between the DP2 and GND pins. Make sure you can read the value of digital_in/D0 to be low.

    NEVER CONNECT VSUPPLY AND GND TOGETHER!!