Jump to content

Recommended Posts

Posted

Hi there!

I have made a nice little box with only pushbutton integrated encoders.

I have in mind to handle the leds with visual basic for animations etc.

the example application enc_example2_v1_3.zip handles my encoders very well so i would

like to keep it as a base, but now I need to take control of the Dout pins.

Is there a simple code I can add to make the pins controllable like those on the midio128?

If not, will sysex debugging work or must I activate it?

thanks in advance for any advice, ::)

Alex

Posted

Ok, I'm playing with the main.ASM to see if I can make DATA2 (note number)  of the received midi messages set the corresponding PIN to 5V:

I thought I would use the MIOS_DOUT_PinSet1 fonction, Heres what I am trying:

;; --------------------------------------------------------------------------

;;  This function is called by MIOS when a complete MIDI event has been received

;;  Input:

;;    o first  MIDI event byte in MIOS_PARAMETER1

;;    o second MIDI event byte in MIOS_PARAMETER2

;;    o third  MIDI event byte in MIOS_PARAMETER3

;; --------------------------------------------------------------------------

USER_MPROC_NotifyReceivedEvent

movf MIOS_PARAMETER2, W

call MIOS_DOUT_PinSet1

return

I had no errors upon compilation but nothing happens when I send midi to the core.

Any suggestions? please don't be rough, it's my first asm attempt  :P

cheers

Posted

Hi,

which CCs would you like to use for controlling the LEDs? Does this matter or not? If not, the appr. ASM code will look easy and can write it down quickly. If you need a configuration table, then I can only suggest to work through all examples.

Best Regards, Thorsten.

Posted

Hi Thorsten,

thanks for the advice, I Made this weekend an ASM weekend, going through all the examples etc, and guess what?

i wrote my own data table!

thanks to your very comprehensive documentation,I now have this baby up and running, including animated Leds, custom lcd messages, all from visual basic!!!

Alex

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