gpio direction and some i2c pwv