Hi,
I'm scanning a matrix, and my code looks like:
for (c = 0; c < columns; ++c) {
columns[c].set_high(); // PSOR
for (r = 0; r < rows; ++r) {
int x = rows[r].read();
}
columns[c].set_low(); // PCOR
}
However, I've found that I needed a few ms delay after 'set_low', otherwise it looks like 2 columns can be on at once.
Is there a 'proper' way to accomplish this? The ms delay feels very hacky.
I'm using the MKL27Z.
Thanks,
Joey