Hi MangoKid,
I am away from MY Computer and my books, but if I understand this last statement correctly,
" this is done by placing the datapin wire to ground."
I believe you are referring to the ports "Idle State" if so here is the little secret: If you are sending TRUE the port wants a pull up resistor and if you are sending INVERTED the port wants a pull Down resistor.