Do not re-initialize GPIO pins every time

Addresses issue #21 and #17.
Merge pull request #23 from githubnemo/flicker-fix

Do not re-initialize GPIO pins every time