2016-10-07 19:23:17 +08:00
|
|
|
package edison
|
|
|
|
|
2016-12-08 20:24:03 +08:00
|
|
|
import "gobot.io/x/gobot/sysfs"
|
2016-10-07 19:23:17 +08:00
|
|
|
|
|
|
|
var arduinoPinMap = map[string]sysfsPin{
|
2017-03-28 02:10:37 +08:00
|
|
|
"0": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 130,
|
|
|
|
resistor: 216,
|
|
|
|
levelShifter: 248,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"1": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 131,
|
|
|
|
resistor: 217,
|
|
|
|
levelShifter: 249,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"2": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 128,
|
|
|
|
resistor: 218,
|
|
|
|
levelShifter: 250,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"3": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 12,
|
|
|
|
resistor: 219,
|
|
|
|
levelShifter: 251,
|
|
|
|
pwmPin: 0,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
|
|
|
|
2017-03-28 02:10:37 +08:00
|
|
|
"4": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 129,
|
|
|
|
resistor: 220,
|
|
|
|
levelShifter: 252,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"5": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 13,
|
|
|
|
resistor: 221,
|
|
|
|
levelShifter: 253,
|
|
|
|
pwmPin: 1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"6": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 182,
|
|
|
|
resistor: 222,
|
|
|
|
levelShifter: 254,
|
|
|
|
pwmPin: 2,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"7": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 48,
|
|
|
|
resistor: 223,
|
|
|
|
levelShifter: 255,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"8": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 49,
|
|
|
|
resistor: 224,
|
|
|
|
levelShifter: 256,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"9": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 183,
|
|
|
|
resistor: 225,
|
|
|
|
levelShifter: 257,
|
|
|
|
pwmPin: 3,
|
|
|
|
mux: []mux{},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"10": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 41,
|
|
|
|
resistor: 226,
|
|
|
|
levelShifter: 258,
|
|
|
|
pwmPin: 4,
|
|
|
|
mux: []mux{
|
2017-03-28 02:10:37 +08:00
|
|
|
{263, sysfs.HIGH},
|
|
|
|
{240, sysfs.LOW},
|
2016-10-07 19:23:17 +08:00
|
|
|
},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"11": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 43,
|
|
|
|
resistor: 227,
|
|
|
|
levelShifter: 259,
|
|
|
|
pwmPin: 5,
|
|
|
|
mux: []mux{
|
2017-03-28 02:10:37 +08:00
|
|
|
{262, sysfs.HIGH},
|
|
|
|
{241, sysfs.LOW},
|
2016-10-07 19:23:17 +08:00
|
|
|
},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"12": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 42,
|
|
|
|
resistor: 228,
|
|
|
|
levelShifter: 260,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{
|
2017-03-28 02:10:37 +08:00
|
|
|
{242, sysfs.LOW},
|
2016-10-07 19:23:17 +08:00
|
|
|
},
|
|
|
|
},
|
2017-03-28 02:10:37 +08:00
|
|
|
"13": {
|
2016-10-07 19:23:17 +08:00
|
|
|
pin: 40,
|
|
|
|
resistor: 229,
|
|
|
|
levelShifter: 261,
|
|
|
|
pwmPin: -1,
|
|
|
|
mux: []mux{
|
2017-03-28 02:10:37 +08:00
|
|
|
{243, sysfs.LOW},
|
2016-10-07 19:23:17 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|