Module digital - Processes for manipulating digital pins

Processes for manipulating digital pins.

Index

Declarations

digital.module:32Data type LEVEL

DATA TYPE LEVEL

Symbolic constant for setting the level of a digital pin.

Can be

  • VAL LEVEL HIGH or
  • VAL LEVEL LOW

digital.module:63Constant INPUT

VAL INT INPUT

Symbolic constant for setting data direction registers to input.

digital.module:65Constant OUTPUT

VAL INT OUTPUT

Symbolic constant for setting data direction registers to output.

digital.module:72Process digital.write

PROC digital.write (VAL INT board.pin, VAL LEVEL state)

Sets the digital state of a pin to either HIGH or LOW.

Parameters:

VAL INT board.pin The board pin to be set.
VAL LEVEL state The state to set -- Either HIGH or LOW.

digital.module:88Process digital.read

PROC digital.read (VAL INT board.pin, RESULT LEVEL state)

Reads the digital state of a pin. Either HIGH or LOW.

Parameters:

VAL INT board.pin The board pin to be read.
RESULT LEVEL state The pin's current state -- Either HIGH or LOW.

digital.module:106Process digital.mode

PROC digital.mode (VAL INT board.pin, mode)

Sets the Data Direction Register of the given pin (sets the flow of data) to either INPUT or OUTPUT.

Parameters:

VAL INT board.pin The board pin to set the direction of.
VAL INT mode The mode to be set. Either INPUT or OUTPUT.

digital.module:124Process digital.output

PROC digital.output (VAL INT board.pin, CHAN LEVEL in?)

Set digital levels on a pin. Reads LEVEL values (LOW or HIGH) on the input channel, and sets the value of the specified pin accordingly.

Parameters:

VAL INT board.pin The Arduino pin number
CHAN LEVEL in Pin levels (LOW or HIGH)

digital.module:143Process digital.input

PROC digital.input (VAL INT board.pin, CHAN LEVEL out!)

Read digital levels on external level interrupt pins. This procedure will output a LEVEL (either LOW or HIGH) whenever the pin changes value.

Parameters:

VAL INT board.pin The pin number (pins 2 and 3 are safe choices).
CHAN LEVEL out The LEVEL, output when the pin changes level.
cheap generic viagra online cheap generic viagra usa cheap generic viagra online cheap generic viagra