private GpioPinPwmOutput[] provisionPwmOutputs(final PCA9685GpioProvider gpioProvider) {
   GpioController gpio = GpioFactory.getInstance();
   GpioPinPwmOutput myOutputs[] = {
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_00, "Servo 00"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_01, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_02, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_03, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_04, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_05, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_06, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_07, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_08, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_09, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_10, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_11, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_12, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_13, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_14, "not used"),
     gpio.provisionPwmOutputPin(gpioProvider, PCA9685Pin.PWM_15, "not used")
   };
   return myOutputs;
 }
Пример #2
0
 @Override
 public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, int defaultValue) {
   return delegate.provisionPwmOutputPin(pin, defaultValue);
 }
Пример #3
0
 @Override
 public GpioPinPwmOutput provisionPwmOutputPin(
     GpioProvider provider, Pin pin, String name, int defaultValue) {
   return delegate.provisionPwmOutputPin(provider, pin, name, defaultValue);
 }
Пример #4
0
 @Override
 public GpioPinPwmOutput provisionPwmOutputPin(Pin pin) {
   return delegate.provisionPwmOutputPin(pin);
 }
Пример #5
0
 @Override
 public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String name) {
   return delegate.provisionPwmOutputPin(pin, name);
 }
Пример #6
0
 @Override
 public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin) {
   return delegate.provisionPwmOutputPin(provider, pin);
 }