Sorry, the second for statement is actually suppose to be
for(i = 0; i<16; i++)
{
sample[i][j] = read_adc(0);
itoa(sample[i][j], mid_store);
strcpy(output, mid_store);
strcpy(output, ',');
}
I guess I made another mistake in my code when I posted it on this forum also.
for(i = 0; i < 16; i++)
{...
I was just wondering if you could see anything wrong with this code off had that wouldn't make it work
char mid_store[6];
char output[512];
unsigned char sample[16][9];
int j;
int i;
int str_length = 0;
for(j = 0; j<9; j++)
{
for(j = 0; j<16; j++)
{
sample[i][j] = read_adc(0)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.