napierzaza Posted March 3, 2008 Report Posted March 3, 2008 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_TABLEMIOS_ENC_MODE_NON_DETENTED EQU 0x00MIOS_ENC_MODE_DETENTED EQU 0x80MIOS_ENC_MODE_DETENTED1 EQU 0x80MIOS_ENC_MODE_DETENTED2 EQU 0x81MIOS_ENC_MODE_DETENTED3 EQU 0x82Further searching does not reveal any other reference to "MIOS_ENC_PIN_TABLE" Quote
nILS Posted March 3, 2008 Report Posted March 3, 2008 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 fileAnd 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. Quote
TK. Posted March 3, 2008 Report Posted March 3, 2008 End of setup_mbfm_v1.asmBest 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. Quote
napierzaza Posted March 4, 2008 Author Report Posted March 4, 2008 Thanks both of you. I certainly came across several references to files that did not exist in my search, but I should have seen them in the asm anyhow. Many thanks. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.