I was looking at ways to hook up a max7221 to the midibox. I am always thinking in terms of retaining the functionality of a midbox64 but being able to change how certain things are done.
I know there was a max72xx driver created as part of the Stribe project in the repository However I am not sure how to hook this up to core if I am using it for DOUT, DIN and AIN modules as well.
I am also trying to avoid re-inventing the wheel or writing too much new code since the BLM project already exists and works well.
I was wondering if I could just connect a max7221 chip in place of where two 74HC595’s on a DOUT module would be and then used the normal MIOS code for writing to a dout module to control it? (as long as I read the max7221 data sheet and sent the appropriate values to control it… e.g. I may have to write a few of my own functions for it)
I could also do all this stuff with just the standard DOUTs but then I lose the ability to easily control the broghtness of each led matrix I drive. I want to use three cascaded max7221 chips to drive an rgb led matrix of 8x8. It is nice that each one only needs a single resistor value to set the brightness of the whole colour.
I could also do this with the 74HC595 by pwm the chip enable pin BUT how do I program this into mios? what pin do I use as the pwm output? Should I get a dedicated square wave generator to do this? If so, how do I control it with software?