code: @Override
      public Consumer createConsumer(Processor processor) throws Exception {
          LOG.debug(this.toString());
  
          if (direction == null || (direction.compareTo("") == 0)) {
              direction = "DIR_INPUT_ONLY";
          }
          if (mode == null || (mode.compareTo("") == 0)) {
              mode = "MODE_INPUT_PULL_UP";
          }
          if (trigger == null || (trigger.compareTo("") == 0)) {
              trigger = "TRIGGER_BOTH_EDGES";
          }
  
          int internalDirection = internalValueWithOR(direction);
          int internalMode = internalValueWithOR(mode);
          int internalTrigger = internalValueWithOR(trigger);
  
          GPIOPinConfig pinConfig = new GPIOPinConfig(0, Integer.parseInt(this.gpioId), internalDirection, internalMode,
                  internalTrigger, state);
  
          GPIOPin pin = DeviceManager.open(GPIOPin.class, pinConfig);
          return new GPIOConsumer(this, processor, pin);
      }
docs: Create consumer map to an Input PIN