1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

pintable + tablepin maps for all 17 WiringPi pins

This commit is contained in:
Chris Swan 2013-12-31 08:54:06 +00:00
parent 982ad91581
commit 9839e87580

View File

@ -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) // Map physical P1 pins to Gordon's Wiring-Pi Pins (as they should be V1/V2 tolerant)
var pintable = { var pintable = {
// Physical : WiringPi // Physical : WiringPi
"7":"7",
"11":"0", "11":"0",
"12":"1", "12":"1",
"13":"2", "13":"2",
"15":"3", "15":"3",
"16":"4", "16":"4",
"18":"5", "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 = { var tablepin = {
// WiringPi : Physical // WiringPi : Physical
"7":"7",
"0":"11", "0":"11",
"1":"12", "1":"12",
"2":"13", "2":"13",
"3":"15", "3":"15",
"4":"16", "4":"16",
"5":"18", "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) { function GPIOInNode(n) {