1. Sebastian Bub
  2. Raspberry Pi GPIO Web Control

Commits

Sebastian Bub  committed d0ceafd

pin 27 added RaspberryPi board rev 2.0

  • Participants
  • Parent commits a26ac94
  • Branches default

Comments (0)

Files changed (1)

File src/main/java/de/derbub/rpigpio/gpio/GpioPin.java

View file
  • Ignore whitespace
  */
 public enum GpioPin {
 
-    GPIO0(0, "GPIO.0"), GPIO1(1, "GPIO.1"), GPIO4(4, "GPIO.4"),
-    GPIO7(7, "GPIO.7"), GPIO8(8, "GPIO.8"), GPIO9(9, "GPIO.9"),
-    GPIO10(10, "GPIO.10"), GPIO11(11, "GPIO.11"), GPIO14(14, "GPIO.14"),
-    GPIO15(15, "GPIO.15"), GPIO17(17, "GPIO.17"), GPIO18(18, "GPIO.18"),
-    GPIO21(21, "GPIO.21"), GPIO22(22, "GPIO.22"), GPIO23(23, "GPIO.23"),
-    GPIO24(24, "GPIO.24"), GPIO25(25, "GPIO.25");
+    GPIO0(0, "GPIO.0"), GPIO1(1, "GPIO.1"), GPIO4(4, "GPIO.4"), GPIO7(7, "GPIO.7"), GPIO8(8, "GPIO.8"),
+    GPIO9(9, "GPIO.9"), GPIO10(10, "GPIO.10"), GPIO11(11, "GPIO.11"), GPIO14(14, "GPIO.14"), GPIO15(15, "GPIO.15"),
+    GPIO17(17, "GPIO.17"), GPIO18(18, "GPIO.18"), GPIO21(21, "GPIO.21") /* 21 only on rev1 boards */,
+    GPIO22(22, "GPIO.22"), GPIO23(23, "GPIO.23"), GPIO24(24, "GPIO.24"), GPIO25(25, "GPIO.25"),
+    GPIO27(27, "GPIO.27") /* 27 only on rev2 boards */;
     private int number;
     private String configPrefix;