I am building a system that requires the following functions:
2 cores linked
Each core can handle:
-
64 pots
-
128 buttons
-
64 rgb leds
-LCD screen that can receive display data via midi (use sysex and a sysex handler?)
In order to handle the 64 rgb leds, 2 DOUTx4 modules need to be used to control an led matrix (each one handles 32 leds).
On each DOUTx4 module, the first SR only uses 4 pins to drive common cathode columns. The other 3 SR’s each connect to one of the RGB colours:
SR1: columns
SR2: red (rows)
SR3: green (rows)
SR3: blue (rows)
The rgb leds would be set via NoteOn messages where the velocity value is decoded to turn on the rgb colour (e.g. there are only 7 possible colours so we only need 3 bits). This function would then have to set the values at the three different SR’s that represent the components colors of a single RGB led.
Does the RGB led handler need to be written in assembly code??
Can I write all of this in C?
If so, I would just start with the sdcc_skeleton_v1_9c.zip? (I guess use the ain64_din128_dout128_v2_0.zip as a good starting point)
Next question: this whole control surface is going to be interfaced to a pc running max/msp. I want max to be able to send text strings to an lcd (or multiple) lcds on my controller. What is the best way to do this using midi?
thanks!
Danjel