hi,
i'm new to arduino and having trouble figuring out how to make a data table,
i'm trying to make a table (16x16) to store pre-selected numbers ranging from 0 - 5, i have two analog sensors an i need them to choose a number/cell in the table depending on both sensors values.
example, (not 16x16 but you get the idea)
4 4 4 4 5 5 5 5 5 5
4 4 4 4 4 5 5 5 5 5
4 4 4 4 4 5 5 5 5 5
3 4 4 4 4 4 5 5 5 5
y 3 3 3 4 4 4 4 5 5 5
3 3 3 3 4 4 4 4 5 5
2 3 3 3 3 4 4 4 4 5
2 2 2 2 3 3 3 4 4 4
1 1 2 2 2 2 3 3 3 4
1 1 1 2 2 2 3 3 3 3
x
do i store this data in an multidimensional array? an how would i write an algorithm to turn the two sensor values (y and X) into numbers on the grid ? sorry if this is a noob question :s i've tried looking on google but cant find any info on this. thanks