Jump to content

Status of LC Shift-Button


 Share

Recommended Posts

Hi ...

I got some special encoders on my MidiboxLC and now I want, that that these encoders send different controller-values depending on the status of the "Shift"-Button. (example: SHIFT "unpressed" -> encoder has controller-value 0x07 [Volumen] or SHIFT = "pressed" -> encoder should have controller-value 0x08 [balance]).

How can I get the current status of the SHIFT-Button? Do I have to use a special register to save status from inside "...button.inc", or is there an easier way?

thanks  Pearl

Link to comment
Share on other sites

Hi,

Although I am certainly no expert on the LC application code I have looked through the code. I can see no place where the state of the shift button is saved as such. You could call the "MIOS_DIN_PinGet" function with the SRIO pin number of the shift button in WREG. This function will return the state of the pin (and thus the shift button state) in WREG and MIOS_PARAMETER.

Hope this is useful  :)

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

×
×
  • Create New...