Fixed arduino nano code. To test with encoder. Tested with button. Seen
debounce issues