Jump to content

rotary encoder replacement?


Guest Ryan

Recommended Posts

Hi!

If I wired 2 push button switches like the one on the schematics of the rotary encoders, can it replace the encoder? like up and down buttons?

or maybe by using up/down decade counters?

Thanks much,

Ryan

Link to comment
Share on other sites

Not really. Encs work like that:

Right direction (e.g. up counting):

bit 1: 0 1 1 0 0 ...

bit 2: 0 0 1 1 0 ...

and the other way (down):

bit 1: 0 0 1 1 0 ...

bit 2: 0 1 1 0 0 ...

That means you would have to push those two buttons exactly that way to go up/down. This also means that if you releace a button in a certain position you count down by one again (so you can only go up/down by 4 without holding the buttons).

Perhaps you can lget there from the MIOS side: E.g. look at the SID Firmware. The Encoder to select the Menu items can also be two push buttons, you just have to set that bit in the main.asm

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...