I want to program my own software running on the “Generic” SEQ-CS-Wilba - UI- PCB (Software: Triggermatrix)
it has nothing to do with the SEQV4, except the BPM part, so ripp off the UI-Code for the Button-Matrix from SEQV4 is a no go > i dont understand it.
i first wrote a small app to show me DIN-PINing off all Btns, (following Pins have a offset off 4 Shiftregisters … because a MB-LRE-8x2CS is in the chain)
then realized that not every btn has its very own PIN…ok i thougt, i know such things from LEDMatrices the other way arround.
But Scan Matrices (BTNs) is newland for me… i quick search give me: mios32/trunk/apps/examples/fastscan_button_matrix_16x16 <<< should i start with that, or is there a more simple/better for learn-Code somewhere
thanx
| | MB-LRE8x2CS ROW 1 |
| ENC | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| SR | 1 | 1 | 1 | 1 | 2 | 2 | 2 | 2 |
| Pin | 0 | 2 | 4 | 6 | 0 | 2 | 4 | 6 |
| | MB-LRE8x2CS ROW 2 |
| ENC | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| SR | 3 | 3 | 3 | 3 | 4 | 4 | 4 | 4 |
| Pin | 0 | 2 | 4 | 6 | 0 | 2 | 4 |
|
| | | | | BNT-SCAN-Matrix |
| Nr. | | | | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| BTN | 46 | 46 | | | | | | | | | | | | | | | | | |
| LED | | | | | | | | | | | | | | | | | | | |
| BTN | 47 | 47 | | | | | | | | | | | | | | | | | |
| LED | | | | | | | | | | | | | | | | | | | |
| BTN | 46 | 46 | | | | | | | | | | | | | | | | | |
| LED | | | | | | | | | | | | | | | | | | | |
| BTN | 47 | 47 | | | | | | | | | | | | | | | | | |
| LED | | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | | |
| BTN | 47 | 47 | | 40 | 41 | 40 | 41 | 40 | 41 | 40 | 41 | 40 | 41 | 40 | 41 | 40 | 41 | 40 | 41 |
| LED | | | | | | | | | | | | | | | | | | | |
| BTN | 47 | 47 | | 43 | 42 | 43 | 42 | 43 | 42 | 43 | 42 | 43 | 42 | 43 | 42 | 43 | 42 | 43 | 42 |
| LED | | | | | | | | | | | | | | | | | | | |
| BTN | 47 | 47 | | 45 | 44 | 45 | 44 | 45 | 44 | 45 | 44 | 45 | 44 | 45 | 44 | 45 | 44 | 45 | 44 |
| LED | | | | | | | | | | | | | | | | | | | |
As far as I know, there’s no circuit diagram for the SEQ PCB, but you could trace the layout pretty easily. Are you familiar with the concept though? A button matrix scans inputs via DIN and sends pulses on the DOUT chain to close the circuit. It’s not high-level programming, but you could load up MB_NG and define a button matrix to test the concept. just made a CS for his SEGA Genesis build, perhaps he has some advice.
the concept sounding logical… i think i have something seen here http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Ftutorials%2F029_keyboard_velocity%2FREADME.txt
no, mb_ng is to big (cant understand code which i havent programmed myself, or stripped down to the minimum working task)
have to try to strip down the tutorial 29 code, by remove the Velocity calculating.
T.K
March 24, 2016, 3:35pm
4
The BLM_X is the right choice (and not the KEYBOARD driver)
Programming Example: http://svnmios.midibox.org/listing.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fexamples%2Fblm_x%2F
Following configuration is required in mios32_config.h:
// configure BLM\_X driver #define BLM\_X\_NUM\_ROWS 8 #define BLM\_X\_BTN\_NUM\_COLS 8 #define BLM\_X\_LED\_NUM\_COLS 8 #define BLM\_X\_LED\_NUM\_COLORS 1 #define BLM\_X\_ROWSEL\_DOUT\_SR 1 #define BLM\_X\_LED\_FIRST\_DOUT\_SR 2 #define BLM\_X\_BTN\_FIRST\_DIN\_SR 2 #define BLM\_X\_ROWSEL\_INV\_MASK 0x00 #define BLM\_X\_DEBOUNCE\_MODE 1
Schematic which shows the DIN/DOUT mapping: http://www.ucapps.de/midibox_seq/mbseq_v4_dio_wilba_layout.pdf
Best Regards, Thorsten.
18 hours ago, latigid on said:
just made a CS for his SEGA Genesis build, perhaps he has some advice.
BLM_X works well and was relatively easy to use. I even fixed a couple bugs in it along the way.
yesss… Triggermatrix is on the way to generic
SOFTWARE: i stripped it a bit, and something… to find the pinning… and with pinning its easyer to program…
UI__SEQ-CS+LRE8x2CS.zip
HARDWARE:
STM34F4 CORE [J8/J9] > [J1]MB-SEQ-CS-Wilba[J2] > [IN]MB-LRE8x2CS-Fairlightii
| | MB-SEQ CS |
| BLMx | | | ENCODERS |
| BTN | 62 | 54 | ENC | 0 | | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | 10 | | 11 | | 12 | | 13 | | 14 | | 15 | |
| LED | 59 | 50 | SR | 1 | | 1 | | 1 | | 1 | | 3 | | 3 | | 3 | | 3 | | 4 | | 4 | | 4 | | 4 | | 5 | | 5 | | 5 | | 5 | |
| BTN | 63 | 55 | PIN | 6 | | 4 | | 2 | | 0 | | 6 | | 4 | | 2 | | 0 | | 6 | | 4 | | 2 | | 0 | | 6 | | 4 | | 2 | | 0 | |
| LED | 58 | 49 | |
| BTN | 46 | 38 | ENC | 16 | JOG | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| LED | 57 | 34 | SR | 6 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| BTN | 47 | 39 | PIN | 2 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| LED | 56 | 33 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| BLMx | | | BLM+x |
| BTN | 14 | 30 | | | 32 | 33 | 40 | 41 | 48 | 49 | 56 | 57 | 24 | 25 | 16 | 17 | 8 | 9 | 0 | 1 |
| LED | 10 | 26 | | | 39 | 38 | 37 | 36 | 47 | 46 | 45 | 44 | 55 | 54 | 53 | 52 | 63 | 62 | 61 | 60 | 31 | 30 | 29 | 28 | 23 | 22 | 21 | 20 | 15 | 14 | 13 | 12 | 7 | 6 | 5 | 4 |
| BTN | 15 | 31 | | | 35 | | 42 | | 43 | | 50 | | 51 | | 58 | | 59 | | | | | | 26 | | 27 | | 18 | | 19 | | 10 | | 11 | | 2 | |
| LED | 9 | 25 | | | 35 | | 43 | | 42 | | 51 | | | | | | | | BEAT | | | | | | | | | | | | | | | |
| BTN | 6 | 22 | | | 37 | | 44 | | 45 | | 52 | | 53 | | 60 | | 61 | | | 1 | | | 28 | | 29 | | 20 | | 21 | | 12 | | 13 | | 4 | |
| LED | 8 | 24 | | | 0? | | 41 | | 40 | | 48 | | | | | | | | | | | | | | | | 18 | | 19 | | 11 | | 3 | | 2 | |
| MB-LRE8x2 CS 2.5 in seriell to MB-SEQ CS Wilba |
| ENC | 0 | | 2 | | 4 | | 6 | | 8 | | 10 | | 12 | | 14 |
| SR | 7 | | 7 | | 8 | | 8 | | 9 | | 9 | | 10 | | 10 |
| PIN | 0 | | 4 | | 0 | | 4 | | 0 | | 4 | | 0 | | 4 |
| ENC | 1 | | 3 | | 5 | | 7 | | 9 | | 11 | | 13 | | 15 |
| SR | 7 | | 7 | | 8 | | 8 | | 9 | | 9 | | 10 | | 10 |
| PIN | 2 | | 6 | | 2 | | 6 | | 2 | | 6 | | 2 | | 6 |