update gpio set and get script