Hello all,
I am trying to create a program that reads four letters at once from a user, then displays them on four 7-segment displays, with a delay between each display. I keep getting errors about the array meant to hold the four letters. I'd appreciate any help with this.
int g = 1;
int f = 2;
int a = 3;
int b = 4;
int e = 5;
int d = 6;
int c = 7;
int h = 8; //period
void setup()
{
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
Serial.begin(9600);
Serial.println("Enter 4 letters from the list below with a space between letters: ");
Serial.println("A, a, b, C, c, d, E, F, G, H, h, I, i, J, L, l, n, O, o, P, q, r, S, t, U, u, y, Z");
}
word has a size of 4 and so is indexed from 0 to 3.
But you are indexing it with j which goes from 0 to 27.
Maybe you mean to index it with i-9 ?
Also, binlt looks like it should be indexed with j, not i.