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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...