static void setChronometry(byte startEdge, byte stopEdge, byte stopCycles, byte inPin)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
The chronometry is used to measure time of external events on a single input pin. It is started by the occurrence of an external event on this input pin. This external event is specified by the startEdge. The chronometry can be stoped by the occurrence of another external event on this input pin. This stop event is defined by the stopEdge parameter.
Parameter | Range | Description |
---|---|---|
startEdge | IO.RISING_EDGE, IO.FALLING_EDGE | defines the start edge |
stopEdge | IO.RISING_EDGE, IO.FALLING_EDGE | defines the stop edge |
stopCycles | 1 ... 1000000 | number of repetitive stop events |
ioPin | 0 ... 15 | defined input pin |
The startEdge defines a rising or a falling edge to start the chronometry. The stopEdge defines a rising or falling edge for the stop condition. The stopCycle defines the number of stop conditions that must occur to stop the chronometry. The ioPin specifies the single input pin that is used for the external start and stop conditions.
Note
Example
IO.setChronometry(IO.RISING_EDGE, IO.FALLING_EDGE, (byte)1, IO.INPUT_0);
See also:
Copyright © demmel products gmbh. All rights reserved.