Class PinProvider

    • Constructor Detail

      • PinProvider

        public PinProvider()
    • Method Detail

      • createDigitalPin

        protected static Pin createDigitalPin​(String providerName,
                                              int address,
                                              String name)
      • createDigitalAndPwmPin

        protected static Pin createDigitalAndPwmPin​(String providerName,
                                                    int address,
                                                    String name,
                                                    EnumSet<PinEdge> edges)
      • createDigitalAndPwmPin

        protected static Pin createDigitalAndPwmPin​(String providerName,
                                                    int address,
                                                    String name)
      • createAnalogInputPin

        protected static Pin createAnalogInputPin​(String providerName,
                                                  int address,
                                                  String name)
      • getPinByName

        public static Pin getPinByName​(String name)
      • getPinByAddress

        public static Pin getPinByAddress​(int address)
      • allPins

        public static Pin[] allPins()
        Get all pin instances from this provider.
        Returns:
        all pin instances support by this provider
      • allPins

        public static Pin[] allPins​(PinMode... mode)
        Get all pin instances from this provider that support one of the provided pin modes.
        Parameters:
        mode - one or more pin modes that you wish to include in the result set
        Returns:
        pin instances that support the provided pin modes