add code samples for gpio