add demo about rotary encoder