Download RK- Wi.Freestar User`s Manual
Transcript
Using the digital input output pins consists of the following: • Configuring the pins Select direction (input or output), enabling or disabling pullup resistors for pins configured as digital inputs, and setting the initial output value for pins configured as digital outputs. These parameters define the configuration of the pins when a reset occurs. Also the direction and pullup parameters are used to set the state of the pins after exiting sleep mode. • Configuring the sleep state of the pins Select direction (input or output), enabling or disabling pullup resistors for pins configured as digital inputs, and setting the output value for pins configured as digital outputs. Although these parameters are the same as those shown in the “Configuring the pins” item shown above, they are independent and are the state of the pins when the Wi.Freestar module is put into Sleep Mode. • Reading the state of the pins configured as inputs Read the digital value (0 or 1) of the signal applied to the pins configured as inputs. • Setting the state of the pins configured as outputs Set the digital value (0 or 1) for the pins configured as outputs. Page 24 of 42