Do I need to do anything different than
pin = togglePin;
pinMode(pin, INPUT_PULLUP);
instances.push_back(this);
which I’m currently doing in a CPP file for my inputs which are all of a type. I seem to have a floating pin and I’m wondering, as it’s an analog pin and the others which are working fine are digital, if I need to do anything different for it?
thanks