DK0975

3

May 8th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. template <size_t N> bool checkPins(const byte (&pins)[N], byte &index) {
  2. for (; index < N; ++index) {
  3. if (HIGH == digitalRead(pins[index])) { return true; }
  4. }
  5. return false;
Advertisement
Add Comment
Please, Sign In to add comment