Sort of a confusing title I guess. 8)
Thorsten mentioned in a shift key thread, that you could prevent your chosen shift button from triggering any of the usual events, by filtering it out in the “buttons.inc” file:
;; exit on event from button ID = 0x10
movf MIOS_PARAMETER1, W
xorlw 0x10
skpnz
return
In that case, it was at the beginning of the MB64E_BUTTON_GP function, where the user was making his other edits.
How/where do you safely kill an i/o pin’s connections to the rest of the MIOS activity? (I guess the above was one place)
I was tinkering with the use of one of the LED’s as an indicator for something and was noticing that something was immediately turning it off after my dedicated button turned it on. Like something was updating the output shift registers and wasn’t aware of my change. The pin itself (I believe) shouldn’t have been linked to anything else. I had it set to receive an unused high register’s MIDI notes or something.
Thanks!
George
PS (if anyone can answer this one too)
That “general purpose” area of the buttons file is just global code, which all button events will ultimately pass through right? - I know there’s that general purpose button section in the main file for some menu specific functions.