Lab 23. Detect GPIO changes

Enable the D0 GPIO notification

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.

Answer 1:

Trigger D0 GPIO notifications

  • Make sure you have a Node-RED flow enabled that listens to /oap notifications (see https://dustcloud.atlassian.net/wiki/spaces/ALLDOC/pages/40468728 )

  • Connect a jumper between the DP2 and VSUPPLY pins. Make sure you receive a notification.

  • Move the jumper to connect the DP2 and GND pins. Make sure you receive a notification.

  • You can transition the jumper between the two positions above to generate further notifications.

NEVER CONNECT VSUPPLY and GND TOGETHER!!