Call pinMode() in setup() rather than in constructors.
This fixes a potential race condition where pinMode() is called before the Arduino environment is ready for this call.
Ensure the pinMode() calls are made during the call to setup().
This fixes a potential race condition where pinMode() is called before the Arduino environment is ready for this call.
Ensure the pinMode() calls are made during the call to setup().