extract PinState classe

torebase
update doc
Update readme
fix firmata version name
Fix streams