Example of usage of encoder library

Dependencies:   Encoder MODSERIAL mbed