digitalRead added
digitalWrite extented