hybridgroup.gobot/platforms/intel-iot/edison/arduino_pinmap.go

116 lines
2.0 KiB
Go

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