Hi
I'm really new at C-programing so i would be very happy if someone could help me.
I have a project on C HW/SW where I am supposed to build a program for a VGA-display.
One of the things the program shall do is to print a letter on the display with one color and the rest of the screen with another color.
I only need 3 letters: A,B,C
so i thought that I could use Arrays built up on 1/0 to create the letter, like this.
insert1 symbolizes the letter A and shall be printed with a colorCode:unsigned char a[8][8] = { {0,0,0,1,1,0,0,0}, {0,0,1,0,0,1,0,0}, {0,1,0,0,0,0,1,0}, {0,1,0,0,0,0,1,0}, {0,1,1,1,1,1,1,0}, {0,1,0,0,0,0,1,0}, {0,1,0,0,0,0,1,0}, {0,1,0,0,0,0,1,0} };
0 symbolizes the background and shall be printed with a background colour
As far as i understand it, I need 2 for loops for this
one that handles the one's and one that handles the zero's
and if it is 0 it shall be printed with a backgroundcolor and if it is 1 then it shall be printed with a colour
Now to my question. How do i write this code?
Do I have to write it in a different way because it is related to an array?
It seems to me as well that i need if statements?
Any help would be much appreciated=)