charles young / Mbed 2 deprecated GEO_COUNTER_L432KC

Dependencies:   mbed

Fork of GEO_COUNTER_L432KC by Geo Electronics "Geo Counter"

Embed: (wiki syntax)

« Back to documentation index

RotarySwitch Class Reference

RotarySwitch Class Reference

Includes. More...

#include <RotarySwitch.hpp>

Public Member Functions

 RotarySwitch ()
 Constructor.
int GetPosition (void)
 Get the current position of switch.

Detailed Description

Includes.

Code associated with rotary switch.

Definition at line 19 of file RotarySwitch.hpp.


Constructor & Destructor Documentation

RotarySwitch (  )

Constructor.

Parameters:
channelAmbed pin for channel A input.
channelBmbed pin for channel B input.

Definition at line 13 of file RotarySwitch.cpp.


Member Function Documentation

int GetPosition ( void   )

Get the current position of switch.

Definition at line 26 of file RotarySwitch.cpp.