intellijel Posted May 25, 2008 Report Posted May 25, 2008 I am building a system that requires the following functions:2 cores linkedEach 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: columnsSR2: 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 Quote
TK. Posted May 25, 2008 Report Posted May 25, 2008 Yes, RGB handling can be easily done in C. If much more should be handled in parallel, assembly code would be better (therefore I mostly write my own modules in assembly)Template: currently I reorganize the whole MIOS project structure for better re-use.E.g., the BLM matrix is now seperated in a special directory (modules/blm), and the application directory only contains the actual source files (see this directory). And to make the confusion complete: when I release an application, all these directories are copied again into a single directory ;)However, what I want to say: if you want to develop this application future-proven, I recomment the new approach. I will give you access to the programmer section of this forum, so that you can read more about the details.LCD messages: you could realize this the same way like in the Motormix applicationBest Regards, Thorsten. Quote
intellijel Posted May 25, 2008 Author Report Posted May 25, 2008 cool!I forgot to ask: If I already have modules written in assembly code, is there an easy way to call those functions from the main C app?cheers, Danjel Quote
TK. Posted May 25, 2008 Report Posted May 25, 2008 Yes, just have a look into existing modules.You can get write access to the repository if you want. This allows you to publish your modulesBest Regards, Thorsten. 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.