Component: Rotary Encoder (Sensors: EBM Modules)

From Flowcode Help
Jump to navigationJump to search


Author Matrix TSL
Version 1.0 (Release)
Category Sensors: EBM Modules


Image Rotary Encoder component

Provides a rotary encoder with dual digital outputs that provide rotation and direction information. When connected to two digital inputs of a microcontroller a “digital pot” can be implemented to convert to digital values.

Examples

This example scans the encoder for changes and displays a counter on the LCD based on the movement of the encoder. FC6 Icon.png EBM007 Example

Downloadable macro reference

CheckForChanges

No additional information


Parameters

This macro has no parameters


Return value

BYTE


Disable

No additional information


Parameters

This macro has no parameters


Return value

This call does not return a value


Enable

No additional information


Parameters

This macro has no parameters


Return value

This call does not return a value


ReadCounter

No additional information


Parameters

This macro has no parameters


Return value

INT


ResetCounter

No additional information


Parameters

This macro has no parameters


Return value

This call does not return a value


Simulation macro reference

This component does not contain any simulation macros


Property reference

Channel 1

This property is of type Single digital pin and can be referenced with the variable name Channel1.

No additional information


Channel 2

This property is of type Single digital pin and can be referenced with the variable name Channel2.

No additional information