Write Digital IO

The Module has four digital IO pins. These can be configured as inputs, outputs, or tri-state. This example demonstrates how to configure the four digital IO pins as outputs and change their values using the SYS_GPIO command. The library method sysGpio can do one of the following operations, defined in module.h:
 * 1) define GPIO_SET_DIRECTION     0x00
 * 2) define GPIO_SET_INPUT_MODE    0x01
 * 3) define GPIO_SET               0x02
 * 4) define GPIO_CLEAR             0x03
 * 5) define GPIO_TOGGLE            0x04
 * 6) define GPIO_READ              0x05



Next Example: Read Digital IO

Previous: Read Nonvolatile Memory

Top: Module_Examples