input analog array > output digital array

PaulS
ok. I get what you re saying.
I suppose since I want to read an array, "val" in your example, should be another array?

AWOL
the second array is the In array with values LOW and HIGH.

for (int i=0; i < 5; i++) {
if (anIn < 512)

  • {*
    _ In = LOW;_
    * }*
    * else*
    * {*
    _ In = HIGH;
    * }
    }*
    I guess I'm not doing it right. And I guess you're saying the same thing with PaulS, right?_