Jump to content

Recommended Posts

Posted

Okay, so my CS is working, but it goes crazy when I turn my encoder. I have a a Bourns encoder (PEC11-4220F-S0012) which is a 24 DET encoder. I'd like to change the encoder type but I cannot find the option at all in the FM source code. Where is it located? I grep'ed the whole folder and all I could find was some reference in "mios.h" which seems to be more of a decoding of what the options mean in a hex value.

;; used by MIOS_ENC_PIN_TABLE

MIOS_ENC_MODE_NON_DETENTED EQU 0x00

MIOS_ENC_MODE_DETENTED EQU 0x80

MIOS_ENC_MODE_DETENTED1 EQU 0x80

MIOS_ENC_MODE_DETENTED2 EQU 0x81

MIOS_ENC_MODE_DETENTED3 EQU 0x82

Further searching does not reveal any other reference to "MIOS_ENC_PIN_TABLE"

Posted

See readme.txt that comes with the .zip file:

Infos for customization:

  o some general settings can be found in the "Control surface settings" section

    of the setup_mbfm_v1.asm file

And in the setup_mbfm_v2.asm file around line 60 you'll find:

MIOS_ENC_PIN_TABLE
;; encoders 1-16
;;        SR  Pin  Mode
#if CS_MENU_USE_INCDEC_BUTTONS
ENC_EOT
#else
ENC_ENTRY  1,  0,  MIOS_ENC_MODE_DETENTED2 ; menu encoder
#endif

;; additional CS encoders
;;        SR  Pin  Mode
ENC_ENTRY  3,  2,  MIOS_ENC_MODE_DETENTED2 ; Multipurpose Enc #1
ENC_ENTRY  3,  4,  MIOS_ENC_MODE_DETENTED2 ; Multipurpose Enc #2
ENC_ENTRY  3,  6,  MIOS_ENC_MODE_DETENTED2 ; Multipurpose Enc #3
ENC_ENTRY  4,  0,  MIOS_ENC_MODE_DETENTED2 ; Multipurpose Enc #4[/code]

Read. Then: Read more.

Posted

End of  setup_mbfm_v1.asm

Best Regards, Thorsten.

P.S.: README.txt of the current MBFM release is confusing, it contains some artifacts from the previous "flat" project structure - sorry about that! I already corrected this in the development version.

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...