Fixed the gpio set/clr functions.