4 Rotary encoders with 5110 LCD display. For Nucleo boards

Dependencies:   N5110 mbed

Revision:
10:65e7ceb96b39
Parent:
7:62c2c1382d86
--- a/Encoder/EncoderInit.cpp	Sun Oct 23 18:44:15 2016 +0000
+++ b/Encoder/EncoderInit.cpp	Mon Oct 24 17:21:58 2016 +0000
@@ -9,6 +9,8 @@
     timer->Init.Prescaler = 0;
     timer->Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
 
+    HAL_TIM_Encoder_DeInit(timer);
+
     encoder->EncoderMode = encmode;
 
     encoder->IC1Filter = 0x0F;