Using GPIO pins
// Open the GPIO pin for usage
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.setEdgeType(Gpio.EDGE_BOTH)
gpioPin.registerGpioCallback(someCallback)
gpioPin.setValue(true)