From 9839e8758006d45fbb81b3a67589c2d50256f992 Mon Sep 17 00:00:00 2001 From: Chris Swan Date: Tue, 31 Dec 2013 08:54:06 +0000 Subject: [PATCH] pintable + tablepin maps for all 17 WiringPi pins --- nodes/core/hardware/36-rpi-gpio.js | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/nodes/core/hardware/36-rpi-gpio.js b/nodes/core/hardware/36-rpi-gpio.js index ee66cb585..4c6bae7aa 100644 --- a/nodes/core/hardware/36-rpi-gpio.js +++ b/nodes/core/hardware/36-rpi-gpio.js @@ -32,25 +32,43 @@ if (!fs.existsSync("/usr/local/bin/gpio")) { // Map physical P1 pins to Gordon's Wiring-Pi Pins (as they should be V1/V2 tolerant) var pintable = { // Physical : WiringPi - "7":"7", "11":"0", "12":"1", "13":"2", "15":"3", "16":"4", "18":"5", - "22":"6" + "22":"6", + "7":"7", + "3":"8", + "5":"9", + "24":"10", + "26":"11", + "19":"12", + "21":"13", + "23":"14", + "8":"15", + "10":"16" } var tablepin = { // WiringPi : Physical - "7":"7", "0":"11", "1":"12", "2":"13", "3":"15", "4":"16", "5":"18", - "6":"22" + "6":"22", + "7":"7", + "8":"3", + "9":"5", + "10":"24", + "11":"26", + "12":"19", + "13":"21", + "14":"23", + "15":"8", + "16":"10" } function GPIOInNode(n) {