Hey All,
First post, but I'll contribute if/when i see the opportunity.
So I bought a couple(4) of 8x8 led matrixes and 2 74ls154 4 to 16 decoders thats all hooked up and working fine, but now my focus turns to what to do with the display, so in wanting to section it out to display different digits, etc but the problem im having is when I attempt to set the values of an array to one that i defined(using a for loop each to select the row and column of the cell that should be written), i get an error no matter how i order it, here's my prototype code
...
int VirtArray1[5][3] = {
{1,1,1},
{1,0,1},
{1,0,1},
{1,0,1},
{1,1,1}};
...
#define zero[5][3] {
{1,1,1},
{1,0,1},
{1,0,1},
{1,0,1},
{1,1,1}
}
...
void test(){
for(int a = 0; a < 5; a++)
{
for(int b = 0; b < 3; b++)
{
if( h0 == 0){ //h0 is just an incrementer for a clock
VirtArray1[a] = zero[a];
** }**
** }**
** }**
** }**
and heres the problem i've been seeing, no matter how i reorder the loops or putting the if on the outside,
ArraynoTimer.cpp: In function 'void test()':
ArraynoTimer:208: error: 'set' was not declared in this scope
ArraynoTimer:208: error: expected `;' before 'VirtArray1'
can anyone advise on what i might be running into here? i can post the full code if need be.
Thanks!