Automatic inclusion of pullups would not be good. There are too many cases where one would not want them.
The benefit of pinMode(9,INPUT_PULLUP) is that its more obvious what the code does than pinMode(9, INPUT, true);If the user was not familiar with pulls-ups than context sensitive help on INPUT_PULLUP would get him relevant information.Or, if you prefer the three argument version, you could define PULLUP as true and use: pinMode(9, INPUT, PULLUP)
I agree with mem. The way I see it, digital pins really do have three "modes": input, output, and input w/ pullup.The alternative is more versatile but, if the versatility is really that important, why not add a new function that allows the two operations to be arbitrarily combined. "pinControl" seems like a good name for such a function.
it is more consistent with previous code
Pins can be defined as output can benefit from a pullups too.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16