mb944 Posted March 3, 2005 Report Posted March 3, 2005 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 wouldlike 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 Quote
mb944 Posted March 4, 2005 Author Report Posted March 4, 2005 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_NotifyReceivedEventmovf MIOS_PARAMETER2, Wcall MIOS_DOUT_PinSet1 returnI 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 :Pcheers Quote
TK. Posted March 6, 2005 Report Posted March 6, 2005 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. Quote
mb944 Posted March 6, 2005 Author Report Posted March 6, 2005 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 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.