THANK YOU VERY MUCH FOR QUICK REPLY, HIGHLY APPRECIATED
. My code have 10 tabs that the matter any way this is the first file.
#include <ShiftRegister74HC595.h>
ShiftRegister74HC595<3> sr1(6, 5, 4);
ShiftRegister74HC595<1> sr2(3, 2, 4);
const int data1 = 6; // frist shift register's pins
const int str1 = 4; // the storge register (latch pin) of the all the three shift registers are connected together
const int clock1 = 5; //
const int data2 = 3; // second shift register's pins
const int clock2 = 2; //
int i = 0, light_intensity = 5;
long t;
boolean a8x6[8][6];
boolean a8x8[8][8];
boolean a8x12[8][12];
boolean t86[8][6];
boolean t88[8][8];
boolean t812[8][12];
boolean a[8][24] = {
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
};
void setup() {
pinMode(data1, OUTPUT);
pinMode(clock1, OUTPUT);
pinMode(data2, OUTPUT);
pinMode(clock2, OUTPUT);
pinMode(str1, OUTPUT);
}
PROGMEM void loop() {
for (i = 0; i < light_intensity; i++)
a8x8_16();
pt8x8(1, 0 , 0, 1, 75, 100 );
pt8x8(1, 0, 3, 0, 75, 100);
pt8x8(-1, 0, 3, 1, 75, 100);
pt8x8(1, 0, 1, 0, 75, 100);
pt8x8(1, -1, 0, 0, 125, 150 );
pt8x8(1, 0, 0, 1, 65, 150 );
pt8x8(0, 1, 0, 1, 65, 150 );
pt8x8(1, 0, 0, 0, 75, 150 );
pt8x8(0, -1, 0, 1, 75, 50 );
pt8x8(1, 0, 0, 0, 75, 50 );
pt8x8(0, 1, 0, 1, 75, 50 );
pt8x8(0, -1, 2, 1, 75, 50 );
pt8x8(1, -1, 0, 1, 75, 50 );
pt8x8(1, 1, 0, 1, 75, 50 );
a8x8_15();
pt8x8(1, 0 , 0, 1, 75, 100 );
pt8x8(1, 0, 3, 0, 75, 100);
pt8x8(-1, 0, 3, 1, 75, 100);
pt8x8(1, 0, 1, 0, 75, 100);
pt8x8(1, -1, 0, 0, 125, 150 );
pt8x8(1, 0, 0, 1, 65, 150 );
pt8x8(0, 1, 0, 1, 65, 150 );
pt8x8(1, 0, 0, 0, 75, 150 );
pt8x8(0, -1, 0, 1, 75, 50 );
pt8x8(1, 0, 0, 0, 75, 50 );
pt8x8(0, 1, 0, 1, 75, 50 );
pt8x8(0, -1, 2, 1, 75, 50 );
pt8x8(1, -1, 0, 1, 75, 50 );
pt8x8(1, 1, 0, 1, 75, 50 );
a8x8_14();
pt8x8(1, 0 , 0, 1, 75, 100 );
pt8x8(1, 0, 3, 0, 75, 100);
pt8x8(-1, 0, 3, 1, 75, 100);
pt8x8(1, 0, 1, 0, 75, 100);
pt8x8(1, -1, 0, 0, 125, 150 );
pt8x8(1, 0, 0, 1, 65, 150 );
pt8x8(0, 1, 0, 1, 65, 150 );
pt8x8(1, 0, 0, 0, 75, 150 );
pt8x8(0, -1, 0, 1, 75, 50 );
pt8x8(1, 0, 0, 0, 75, 50 );
pt8x8(0, 1, 0, 1, 75, 50 );
pt8x8(0, -1, 2, 1, 75, 50 );
pt8x8(1, -1, 0, 1, 75, 50 );
pt8x8(1, 1, 0, 1, 75, 50 );
a8x8_13();
pt8x8(1, 0 , 0, 1, 75, 100 );
pt8x8(1, 0, 3, 0, 75, 100);
pt8x8(-1, 0, 3, 1, 75, 100);
pt8x8(1, 0, 1, 0, 75, 100);
pt8x8(1, -1, 0, 0, 125, 150 );
pt8x8(1, 0, 0, 1, 65, 150 );
pt8x8(0, 1, 0, 1, 65, 150 );
pt8x8(1, 0, 0, 0, 75, 150 );
pt8x8(0, -1, 0, 1, 75, 50 );
pt8x8(1, 0, 0, 0, 75, 50 );
pt8x8(0, 1, 0, 1, 75, 50 );
pt8x8(0, -1, 2, 1, 75, 50 );
pt8x8(1, -1, 0, 1, 75, 50 );
pt8x8(1, 1, 0, 1, 75, 50 );
a8x12_10();
pt8x12(1, 0, 0, 1, 75, 150);
pt8x12(-1, 0, 0, 1, 75, 150);
pt8x12(0, 1, 0, 1, 75, 150);
pt8x12(0, -1, 0, 1, 75, 150);
pt8x12(1, 1, 0, 1, 75, 150);
pt8x12(-1, -1, 0, 1, 75, 150);
pt8x12(1, 0, 1, 1, 75, 150 );
pt8x12(1, 0, 2, 1, 75, 150);
pt8x12(1, 0, 3, 0, 75, 150 );
pt8x12(1, 0, 0, 0, 75, 150 );
pt8x12_2(1, 0, 1, 1, 75, 150 );
pt8x12_2(1, 0, 2, 1, 75, 150);
pt8x12_2(1, 0, 3, 0, 75, 150 );
pt8x12_2(1, 0, 0, 0, 75, 150 );
a8x8_12();
pt8x8(1, 0 , 0, 1, 75, 100 );
pt8x8(1, 0, 3, 0, 75, 150);
pt8x8(-1, 0, 3, 1, 75, 100);
pt8x8(1, 0, 1, 0, 75, 100);
pt8x8(1, -1, 0, 0, 125, 150 );
pt8x8(1, 0, 0, 1, 65, 150 );
pt8x8(0, 1, 0, 1, 65, 150 );
pt8x8(1, 0, 0, 0, 75, 150 );
pt8x8(0, -1, 0, 1, 75, 50 );
pt8x8(1, 0, 0, 0, 75, 50 );
pt8x8(0, 1, 0, 1, 75, 50 );
pt8x8(0, -1, 2, 1, 75, 50 );
pt8x8(1, -1, 0, 1, 75, 50 );
pt8x8(1, 1, 0, 1, 75, 50 );
}
void display() {
for (byte a2 = 0; a2 < 8; a2++) {
sr1w(a2);
sr2w(a2);
digitalWrite(str1, HIGH);
}
}
void sr1w(byte p) {
digitalWrite(str1, LOW);
for (byte a1 = 0; a1 < 24; a1++) {
digitalWrite(clock1, LOW);
if (a[p][a1] == 1) {
digitalWrite(data1, HIGH);
}
else {
digitalWrite(data1, LOW);
}
digitalWrite(clock1, HIGH);
}
}
void sr2w(byte p) {
boolean b[8];
b[0] = HIGH;
b[1] = HIGH;
b[2] = HIGH;
b[3] = HIGH;
b[4] = HIGH;
b[5] = HIGH;
b[6] = HIGH;
b[7] = HIGH;
b[p] = LOW;
digitalWrite(str1, LOW);
for (byte a1 = 0; a1 < 8; a1++) {
digitalWrite(clock2, LOW);
if (b[a1]) {
digitalWrite(data2, HIGH);
}
else {
digitalWrite(data2, LOW);
}
digitalWrite(clock2, HIGH);
}
}
void clearmainarray() {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 24; j++) {
a[i][j] = 0;
}
}
}
PaulRB:
We will help you with the first file, then you can try to do the rest and ask for more help if you need it.
Please post the first file between code tags, not as an attachment.