Updated the construction of TwoBitRotaryEncoder to make binding more in line with how the Pin object works.

Added an example of usage. Ideally once this has been integrated with a IRQ handler the polling will not be requried making this more efficient.