mb944
January 7, 2005, 3:47pm
1
Hello and happy new year to all!
I am making a midibox64E control surface but i want to to drive a funky Dotmatrix display on it using 64 Leds
I use visual basic midi program to filter the midibox messages and would therefore like to drive the dotmatrix from visual basic.
I see you can use SYSEX to control the midibox’s LCD
Is there a way to control the DOUT pins using sysex???
If not, what is the default midibox64E midi mapping for LEDS?
I don’t want to use ledrings, because I need individual controllable Leds for complex Dotmatrix displays.
thanks in advance for Any suggestions on driving DOUT from midi in
Best wishes!
-Alex
T.K
January 9, 2005, 3:33pm
2
Hi Alex,
yes - MIOS provides a debug interface which allows you to execute any function via SysEx - so, you could call MIOS_DOUT_PinSet to set a single LED, or MIOS_DOUT_SRSet to set 8 LEDs of a shift register at once (which is much faster)
MIOS_DOUT_PinSet:
F0 00 00 7E 40 00 0D 01 00 59 40 <a> <b> <c> <d> 00 00 00 00 F7
<a> and <b> are the two hex-digits of the pin number. Pin 18 (the 19th DOUT) has the hex value 12, so <a> should be 1 and <b> should be 2
<c> and <d> are the two hex-digits of the pin value. It’s either <d>=0 (LED off) or <d>=1 (LED on)
<c> is always 0
MIOS_DOUT_SRSet:
F0 00 00 7E 40 00 0D 01 00 59 50 <a> <b> <c> <d> 00 00 00 00 F7
<a> and <b> are the SR number. <b> from 0 to F, <a> is always 0
<c> and <d> are the LED values (2 * 4 bits)
Best Regards, Thorsten.
mb944
January 10, 2005, 5:00pm
3
Thanks Thorsten!
Thats going to save me hours of work, and maybe a couple of keys of my computer keyboard ;)
best regards,
Alex