TomGeorge:
Hi,
Do you have a reason to connect two output pins together?
Tom...
i just want to know the risk, some said it has internal protector or resistor or something, but i like to clarification of it
(sorry about late reply, i must wait 5 newbie post limitation)
Kucingmiow:
i just want to know the risk, some said it has internal protector or resistor or something, but i like to clarification of it
(sorry about late reply, i must wait 5 newbie post limitation)
Kucingmiow:
i just want to know the risk, some said it has internal protector or resistor or something, but i like to clarification of it
(sorry about late reply, i must wait 5 newbie post limitation)
The pins behave differently if they are set as pinMode(pin, INPUT); or as pinMode(pin, OUTPUT);.
The short circuit risk arises if BOTH pins are set as OUTPUT. When a pin is set as INPUT it has a very high internal resistance and connecting an INPUT pin to HIGH or LOW causes no problems.
Note, also that you cannot set an INPUT pin to HIGH or LOW. If you use digitalWrite(pin, HIGH); to an INPUT pin it turns on the internal pullup resistor. It would be equivalent of pinMode(pin, INPUT_PULLUP);