Automattically update pinMode for read/write

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
v0.0.2

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>