val gpioPin = peripheralManagerService.openGpio(pin) // Direction Input or Output gpioPin.setDirection(DIRECTION_OUT_INITIALLY_LOW) // When the Pin is classified as Active gpioPin.setActiveType(ACTIVE_HIGH) gpioPin.registerGpioCallback(someCallback) gpioPin.registerGpioCallback(someCallback) gpioPin.setValue(true)