Add ability to set pinMode and pinState after view creation

Signed-off-by: Vincent Fournié <vincent.fournie@epyx.ch>
Fix warning

Signed-off-by: Vincent Fournié <vincent.fournie@epyx.ch>
Merge pull request #3 from epyx-src/feature/set-pin-mode-and-state

Add ability to set pinMode and pinState after view creation