I am working on midi footcontroller. For display I have been using two daisy chained 8X8 matrices. Display was divided into two zones and 16X8 with two zones is working perfectly. I am using Parola Library and the daisy chained max7219 modules are from ebay.
I am need to enlarge the display to 32X8. To do this, added two more modules to the chain. My code was for two devices so it cloned the displayed text to the newly added matrices. I modified to code and set the max devices to 4 and adjusted the borders for zones. However when I change the code to work for 4 modules arduino hangs after reboot and the displays dont work. I need to mention that the scrolling text example of Parola library works fine with 4 devices. Problem exist only when I use the multizone setup.
My original code for 2 modules with 2 zones works without any problems. The related settings in this code:
//Initialize part #define MAX_DEVICES 2 //In the setup loop P.begin(2); P.setZone(0, 0, 0); P.setZone(1, 1, 1);
To make it work with 4 modules with 2 zones, I change these settings as shown below. With these settings Arduino cannot complete the boot process.
//Initialize part #define MAX_DEVICES 4 //In the setup loop P.begin(2); P.setZone(0, 0, 2); P.setZone(1, 3, 3);
I checked the mutlizone examples that are available in Parola library but they are causing the same problem…
Does anyone have an idea about what I am doing wrong?
I am using Arduino Micro and the full code of my project is attached.
fullCode.rtf (22 KB)