how do I get orange on a bi colour matrix?
i controlling large bi colour matrix
this board, or 1 similar, containing 2 7219's.
this sketch
runs red , green can't find anywhere mentions putting both leds on @ same time , getting orange?
the library cpp file gives reference addr can see addr addressed?
i have tried changing ledcontrol lc=ledcontrol(7,8,9,2) (7,8,9,3), adding lc.shutdown(0,true);
lc.shutdown(2,false); , each of ic,setrow's (addr=2) screen goes blank.
i have read somewhere have make 1 shutdown true before can make 1 false don't want make 0 , 1 false can't see other way of getting orange?
this board, or 1 similar, containing 2 7219's.
this sketch
code: [select]
#include "ledcontrol.h"
/*
now need ledcontrol work with.
***** these pin numbers not work hardware *****
pin 12 connected datain
pin 11 connected clk
pin 10 connected load
we have single max72xx.
*/
ledcontrol lc=ledcontrol(7,8,9,2);// pins 10=datain, 9=clk, 8=load + 2 max7221s
/* wait bit between updates of display */
unsigned long delaytime=1000;
void setup() {
/*
the max72xx in power-saving mode on startup,
we have wakeup call
*/
lc.shutdown(0,false);
/* set brightness medium values */
lc.setintensity(0,4);
lc.setintensity(1,10);
// lc.setintensity(2,10);
/* , clear display */
lc.cleardisplay(0);
}
/*
this method display characters the
word "arduino" 1 after other on matrix.
(you need @ least 5x7 leds see whole chars)
*/
void writearduinoonmatrix() {
/* here data characters */
byte g1[]={b00011000,
b00111000,
b00011000,
b00011000,
b00011000,
b00011000,
b00011000,
b00111100,};
byte g2[]={b00111000,
b01111100,
b01101100,
b00001100,
b00011000,
b00110000,
b01111100,
b01111100};
byte g2b[]={b00011000,
b00100100,
b00000100,
b00000100,
b00001000,
b00010000,
b00100000,
b00111100};
/* display them 1 one small delay */
lc.shutdown(0,true);
delay(10);
lc.shutdown(1,false);
delay(10);
lc.setrow(1,0,g1[0]);
lc.setrow(1,1,g1[1]);
lc.setrow(1,2,g1[2]);
lc.setrow(1,3,g1[3]);
lc.setrow(1,4,g1[4]);
lc.setrow(1,5,g1[5]);
lc.setrow(1,6,g1[6]);
lc.setrow(1,7,g1[7]);
delay(delaytime);
lc.shutdown(1,true);
delay(10);
lc.shutdown(0,false);
delay(10);
lc.setrow(0,0,g2[0]);
lc.setrow(0,1,g2[1]);
lc.setrow(0,2,g2[2]);
lc.setrow(0,3,g2[3]);
lc.setrow(0,4,g2[4]);
lc.setrow(0,5,g2[5]);
lc.setrow(0,6,g2[6]);
lc.setrow(0,7,g2[7]);
delay(delaytime);
lc.shutdown(0,true);
delay(10);
lc.shutdown(1,false);
delay(10);
lc.setrow(1,0,g2b[0]);
lc.setrow(1,1,g2b[1]);
lc.setrow(1,2,g2b[2]);
lc.setrow(1,3,g2b[3]);
lc.setrow(1,4,g2b[4]);
lc.setrow(1,5,g2b[5]);
lc.setrow(1,6,g2b[6]);
lc.setrow(1,7,g2b[7]);
delay(delaytime);
}
void loop() {
writearduinoonmatrix();
}
runs red , green can't find anywhere mentions putting both leds on @ same time , getting orange?
the library cpp file gives reference addr can see addr addressed?
i have tried changing ledcontrol lc=ledcontrol(7,8,9,2) (7,8,9,3), adding lc.shutdown(0,true);
lc.shutdown(2,false); , each of ic,setrow's (addr=2) screen goes blank.
i have read somewhere have make 1 shutdown true before can make 1 false don't want make 0 , 1 false can't see other way of getting orange?
please show wiring of bi-color matrix , actual board using. diagram of how anodes , cathodes arranged helpful in seeing possible.
Arduino Forum > Using Arduino > LEDs and Multiplexing > how do I get orange on a bi colour matrix?
arduino
Comments
Post a Comment