added code to get instance of a gpio controller