test for rotary encoder improvement

The code try to keep the rotary encoder pulse for a specific time to
make windows more easily to detect a "pulse". This improvement is still
in test phase.