Skip navigation links
com.raspoid

Enum RaspberryPiModel

    • Enum Constant Summary

      Enum Constants 
      Enum Constant and Description
      A
      Raspberry Pi Model A.
      APLUS
      Raspberry Pi Model A+.
      B512
      Raspberry Pi Model B512.
      BPLUS
      Raspberry Pi Model B+.
      BREV1
      Raspberry Pi Model B Rev1.
      BREV2
      Raspberry Pi Model B Rev2.
      PI2
      Raspberry Pi 2 Model B.
      PI3
      Raspberry Pi 3 Model B.
      PIZERO
      Raspberry Pi Zero.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getBusNumber()
      Get the bus number used by this model of Raspberry Pi.
      static RaspberryPiModel valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RaspberryPiModel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • A

        public static final RaspberryPiModel A
        Raspberry Pi Model A. (Feb. 2013)
        • ARM1176JZF-S (ARMv6) 700 MHz Broadcom 2835
        • RAM: 256Mo
        • GPIO with 26 pins
      • APLUS

        public static final RaspberryPiModel APLUS
        Raspberry Pi Model A+. (Nov. 2014)
        • ARM1176JZF-S (ARMv6) 700 MHz Broadcom 2835
        • RAM: 256Mo
        • GPIO with 40 pins
        See Also:
        A
      • BREV1

        public static final RaspberryPiModel BREV1
        Raspberry Pi Model B Rev1. (Apr. 2012)
        • ARM1176JZF-S (ARMv6) 700 MHz Broadcom 2835
        • RAM: 256Mo
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
      • BREV2

        public static final RaspberryPiModel BREV2
        Raspberry Pi Model B Rev2. (Jun. 2012)
        • ARM1176JZF-S (ARMv6) 700 MHz Broadcom 2835
        • RAM: 256Mo
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
        See Also:
        BREV1
      • B512

        public static final RaspberryPiModel B512
        Raspberry Pi Model B512. (Oct. 2012)
        • ARM1176JZF-S (ARMv6) 700 MHz Broadcom 2835
        • RAM: 512Mo
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
      • BPLUS

        public static final RaspberryPiModel BPLUS
        Raspberry Pi Model B+. (Jul. 2014)
        • ARM1176JZF-S (ARMv6) 700 MHz Broadcom 2835
        • RAM: 512Mo
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
      • PI2

        public static final RaspberryPiModel PI2
        Raspberry Pi 2 Model B. (Feb. 2015)
        • Broadcom BCM2836, (ARMv7) 900 MHz
        • RAM: 1Go
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
      • PIZERO

        public static final RaspberryPiModel PIZERO
        Raspberry Pi Zero. (Nov. 2015)
        • 1 GHz ARM1176JZF-S core (ARM11)
        • RAM: 512Mo
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
      • PI3

        public static final RaspberryPiModel PI3
        Raspberry Pi 3 Model B. (Feb. 2016)
        • Broadcom BCM2837, (ARM Cortex-A53) 1.2GHz
        • RAM: 1Go
        • GPIO with 40 pins
        • Ethernet 10/100 Mbit/s
    • Method Detail

      • values

        public static RaspberryPiModel[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RaspberryPiModel c : RaspberryPiModel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RaspberryPiModel valueOf(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getBusNumber

        public int getBusNumber()
        Get the bus number used by this model of Raspberry Pi.
        Returns:
        the bus number used by this model of Raspberry Pi.