advice on array


hello. i'm thinking how something, however, still cannot resolve it.
that "something" is:
have boolean array of 8 positions, holds data of 8 switches. need execute function when 1 of switches high , rest low.
how it? hint?
thanks

use loop , examin each element in turn. each 1 find high increment counter.
then have if count one.


Arduino Forum > Using Arduino > Project Guidance > advice on array


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support