New answers tagged

1 vote

A bug with multiple IR detectors

Use arrays instead of a copy/paste coding style. Use millis() instead of delay() statements to eliminate blocking code. Explicitly configure input pins. compiles, but untested: uint8_t irPin[ 8 ] = { ...
user avatar
  • 315

Top 50 recent answers are included