Digital pins and grounds

majenko:
"Never assume anything as it makes an Ass out if U and Me" :wink:

They're CMOS chips, so they use MOSFETs. It's rare for BJTs to be in logic / MCU chips these days.

OK...I retract everything I said so far.