add rgb led and fix encoder's bug