Well, i've not adapted the code, but to have an immediate check i've switched to a single 74HC595 and switched the left board red line to the other board green line as reported on the BLM schematic.
Now both the beards, left and right, works in the same way.
The code adapt will be done later as adviced from Thorsten:
For your usecase, just remove the code inside DIN_BLM_NotifyToggle() and APP_MIDI_NotifyPackage(), and add your own button/led handler
What i don't get yet is that "pre-on" state that i've reported with the third picture in my
previous post.Seems that a small amount of current comes to corrispective leds, i mean:
**=full led on
* = small power on the led (see third picture on my
previous post)
First row of the 2 boards (Left and Right, all connected to the Green control line with 74HC595):
L1 L2 L3 L4 L5 L6 L7 L8 R1 R2 R3 R4 R5 R6 R7 R8
**____________________*_______________________
If i switch-on another Led, eg L6, R6 will have that small amount of power.
And so on for the other leds and belower leds rows.
That's all at the moment about leds, i hope that's something related to the code adapt that i've to do.
Then i've tried to connect in chain, after the BLM module, a DIN module with an Encoder.
I've did as Thorsten said in the first reply of this thread:
adding software handlers for encoders and pots isn't a big task, this would just be a 1:1 integration of existing programming examples:
http://www.ucapps.de/mios8_c.html
Obviusly with core32 i'm going to see the examples in
http://www.ucapps.de/mios32_c.htmlI've tried to insert into the BLM firmware both the examples #014 and #015 (one per time obviusly) but what i get, when i turn the encoders, are different midi note messages on different midi channels.
That's a small list of the output in mios_studio when i turn the encoder one time to the left and one time to the right:
[3354.074] 94 0e 7f
[3354.084] 95 0e 7f
[3354.094] 96 0e 7f
[3354.104] 97 0e 7f
[3354.114] 94 0e 00
[3354.124] 95 0e 00
[3354.134] 96 0e 00
[3354.145] 94 06 7f
[3354.155] 95 06 7f
[3354.165] 96 06 7f
[3354.176] 97 0e 00
[3354.187] 95 06 00
[3354.198] 96 0e 7f
[3354.208] 97 0e 7f
[3354.221] 96 06 00
[3354.232] 97 0e 00
[3354.242] 94 0e 7f
[3354.252] 95 0e 7f
[3354.262] 96 0e 00
[3354.273] 94 06 00
[3354.284] 95 0e 00
[3354.298] 94 0e 00
[3354.309] 96 06 7f
[3354.319] 97 06 7f
[3354.329] 94 06 7f
[3354.339] 95 06 7f
[3354.350] 96 0e 7f
[3354.360] 97 0e 7f
[3354.370] 94 0e 7f
[3354.380] 95 0e 7f
[3355.269] 96 06 00
[3355.279] 97 06 00
[3355.289] 94 06 00
[3355.299] 95 06 00
[3355.310] 96 0e 00
[3355.320] 97 0e 00
[3355.330] 94 0e 00
[3355.340] 95 0e 00
[3355.366] 96 0e 7f
[3355.376] 97 0e 7f
[3355.386] 94 0e 7f
[3355.396] 95 0e 7f
[3355.406] 96 0e 00
[3355.416] 97 0e 00
[3355.426] 94 0e 00
[3355.436] 95 0e 00
[3355.446] 96 0e 7f
[3355.456] 97 0e 7f
[3355.466] 94 0e 7f
[3355.476] 95 0e 7f
[3355.487] 97 06 7f
[3355.498] 94 0e 00
[3355.508] 95 0e 00
[3355.518] 96 0e 00
[3355.528] 97 0e 00
[3355.543] 97 06 00
As you can see there are midi ch.5-ch.6-ch.7-ch.8, notes are always 0e and 06 and the on off messages 0 and 127.
The encoders that i'm using are the Bourns PEC11-4015F-S0024 with switch, i've connected as reported in the wiki page, A C B pins, A & B to the Digital inputs and C, the common to 5v with the switch pins connected one to the Common and one to another Digital input.
I've tried also to disconnect the switch and to put to the ground the metal shaft of the encoder, but the midi output behaviour still remain the same as reported above.
I'll try other tests today but any hint will be appreciated as ever!
Thank you!
Edited by Rics, 14 December 2010 - 09:45.