it is more consistent with previous code
Hi Ray, could you clarify what previous code the three element version is consistent with?
Pins can be defined as output can benefit from a pullups too.
Pull-ups can only be enabled on inputs. Because of the way internal pull-ups are implemented on the controller chip, an output pin whose value is low cannot have pull-ups enabled.