Add ability to set pinMode and pinState after view creation

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