Changed pins again. Using IO pin as ground causes problems.