Problem with MD_Parola
code: [select]
#include <md_parola.h>
#include <md_max72xx.h>
#include "font_hindi.h"
#define max_devices 24
#define max_zones 11
//#define zone_size (max_devices/max_zones)
#define clk_pin 52
#define data_pin 51
#define cs_pin 53
// global variables
md_parola p = md_parola(cs_pin, max_devices);
void setup(void)
{
p.begin(max_zones);
p.setinvert(false);
p.setintensity(0);
p.setzone(0, 16, 23);
p.setzone(1, 8, 15);
p.setzone(2, 0, 7);
serial.begin(9600);
//zones time
p.setzone(3, 0, 0); // s1
p.setzone(4, 1, 1); // s1
p.setzone(5, 2, 2); // s1
p.setzone(6, 3, 3); // s2
p.setzone(7, 4, 4); // m1
p.setzone(8, 5, 5); // m2
p.setzone(9, 6, 6); // h1
p.setzone(10,7, 7); // h2
p.setfont(3, num_font);
p.setfont(4, num_font);
p.setfont(5, num_font);
p.setfont(6, num_font);
p.setfont(7, num_font);
p.setfont(8, num_font);
p.setfont(9, num_font);
p.setfont(10, num_font);
}
void loop(void)
{
p.displayzonetext(0, "zone num 0", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(1, "zone num 1", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
//p.displayzonetext(2, "zone num 2", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(3, "3", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(4, "4", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(5, "5", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(6, "6", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(7, "7", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(8, "8", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(9, "9", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
p.displayzonetext(10, "0", pa_center, 30, 2000, pa_scroll_left, pa_scroll_left);
while (!p.getzonestatus(0) || !p.getzonestatus(1) || !p.getzonestatus(2) || !p.getzonestatus(3) || !p.getzonestatus(4)
|| !p.getzonestatus(5) || !p.getzonestatus(6) || !p.getzonestatus(7) || !p.getzonestatus(8) || !p.getzonestatus(9) || !p.getzonestatus(10))
p.displayanimate();
p.synchzonestart();
}
in above code trying use matrix segments 0-7 individually single zones using zone numbering 3-10, use them @ time using zone 2
but why not able print properly
that's not how zones work. cannot define module in more 1 zone. give undefined results each 1 updates display independently.
by way, if have developed hindi font can send me font definition file (source rather c++ code) can include in distribution? pm me email address.
by way, if have developed hindi font can send me font definition file (source rather c++ code) can include in distribution? pm me email address.
Arduino Forum > Using Arduino > Displays > Problem with MD_Parola
arduino
Comments
Post a Comment