mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	pintable + tablepin maps for all 17 WiringPi pins
This commit is contained in:
		| @@ -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) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user