Hookup API for pin state and mock it for testing (bug 986100)
Merge pull request #19 from muffinresearch/pinstate-hookup

Hookup API for pin state and mock it for testing (bug 986100)