Last active
August 29, 2015 14:02
-
-
Save tiberiucorbu/89ff157ef5b53725d518 to your computer and use it in GitHub Desktop.
Draft Board pinout picture generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var expansionPorts = { | |
"U14" : { | |
"description" : "next to SATA connector", | |
"x" : 42, | |
"y" : 86, | |
"portOrientation" : "lt", | |
"colCount": 2, | |
"pins" : [{ | |
"pinNum" : 1, | |
"func" : "PD0", | |
"detail" : "(LCDD0/LVDSP0)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD00", | |
"reference" : { | |
"uri" : "#PD00" | |
} | |
}, | |
"ball" : { | |
"value" : "AB15" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D0" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VP0" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 2, | |
"func" : "Ground", | |
"details" : null | |
}, { | |
"pinNum" : 3, | |
"func" : "PD2", | |
"detail" : "(LCDD2/LVDS0P1)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD02", | |
"reference" : { | |
"uri" : "#PD02" | |
} | |
}, | |
"ball" : { | |
"value" : "AB14" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D2" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VP1" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 4, | |
"func" : "PD1", | |
"detail" : "(LCDD1/LVDS0N0)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD01", | |
"reference" : { | |
"uri" : "#PD01" | |
} | |
}, | |
"ball" : { | |
"value" : "AC15" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D1" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VN0" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 5, | |
"func" : "PD4", | |
"detail" : "(LCDD4/LNVS0P2)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD04", | |
"reference" : { | |
"uri" : "#PD04" | |
} | |
}, | |
"ball" : { | |
"value" : "AB13" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D4" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VP2" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 6, | |
"func" : "PD3", | |
"detail" : "(LCDD3/LVDS0N1)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD03", | |
"reference" : { | |
"uri" : "#PD03" | |
} | |
}, | |
"ball" : { | |
"value" : "AC14" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D3" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VN1" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 7, | |
"func" : "PD6", | |
"detail" : "(LCDD6/LVDS0PC)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD06", | |
"reference" : { | |
"uri" : "#PD06" | |
} | |
}, | |
"ball" : { | |
"value" : "AB12" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D6" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VPC" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 8, | |
"func" : "PD5", | |
"detail" : "(LCDD5/LVDS0N2)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD05", | |
"reference" : { | |
"uri" : "#PD05" | |
} | |
}, | |
"ball" : { | |
"value" : "AC13" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D5" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VN2" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 9, | |
"func" : "Ground", | |
"details" : null | |
}, { | |
"pinNum" : 10, | |
"func" : "PD7", | |
"detail" : "(LCDD7/LVDS0NC)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD07", | |
"reference" : { | |
"uri" : "#PD07" | |
} | |
}, | |
"ball" : { | |
"value" : "AC12" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D7" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VNC" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 11, | |
"func" : "PD9", | |
"detail" : "(LCDD9/LVDS0N3)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD09", | |
"reference" : { | |
"uri" : "#PD09" | |
} | |
}, | |
"ball" : { | |
"value" : "AC11" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D9" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VN3" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 12, | |
"func" : "PD8", | |
"detail" : "(LCDD8/LVDS0P3)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD08", | |
"reference" : { | |
"uri" : "#PD08" | |
} | |
}, | |
"ball" : { | |
"value" : "AB11" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D8" | |
}, | |
"mux3" : { | |
"value" : "LVDS0_VP3" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 13, | |
"func" : "PD11", | |
"detail" : "(LCDD11/LVDS1N0)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD11", | |
"reference" : { | |
"uri" : "#PD11" | |
} | |
}, | |
"ball" : { | |
"value" : "AA15" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D11" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VN0" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 14, | |
"func" : "PD10", | |
"detail" : "(LCDD10/LVDS1P0)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD10", | |
"reference" : { | |
"uri" : "#PD10" | |
} | |
}, | |
"ball" : { | |
"value" : "Y15" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D10" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VP0" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 15, | |
"func" : "PD13", | |
"detail" : "(LCDD13/LVDS1N1)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD13", | |
"reference" : { | |
"uri" : "#PD13" | |
} | |
}, | |
"ball" : { | |
"value" : "AA14" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D13" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VN1" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 16, | |
"func" : "PD12", | |
"detail" : "(LCDD12/LVDS1P1)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD12", | |
"reference" : { | |
"uri" : "#PD12" | |
} | |
}, | |
"ball" : { | |
"value" : "Y14" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D12" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VP1" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 17, | |
"func" : "PD15", | |
"detail" : "(LCDD15/LVDS1N2)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD15", | |
"reference" : { | |
"uri" : "#PD15" | |
} | |
}, | |
"ball" : { | |
"value" : "AA13" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D15" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VN2" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 18, | |
"func" : "PD14", | |
"detail" : "(LCDD14/LVDS1P2)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD14", | |
"reference" : { | |
"uri" : "#PD14" | |
} | |
}, | |
"ball" : { | |
"value" : "Y13" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D14" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VP2" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 19, | |
"func" : "PD16", | |
"detail" : "(LCDD16/LVDS1PC)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD16", | |
"reference" : { | |
"uri" : "#PD16" | |
} | |
}, | |
"ball" : { | |
"value" : "Y12" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D16" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VPC" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 20, | |
"func" : "Ground", | |
"details" : null | |
}, { | |
"pinNum" : 21, | |
"func" : "PD18", | |
"detail" : "(LCDD18/LVDS1P3)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD18", | |
"reference" : { | |
"uri" : "#PD18" | |
} | |
}, | |
"ball" : { | |
"value" : "Y11" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D18" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VP3" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 22, | |
"func" : "PD17", | |
"detail" : "(LCDD17/LVDS1NC)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD17", | |
"reference" : { | |
"uri" : "#PD17" | |
} | |
}, | |
"ball" : { | |
"value" : "AA12" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D17" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VNC" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 23, | |
"func" : "PD20", | |
"detail" : "(LCDD20)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD20", | |
"reference" : { | |
"uri" : "#PD20" | |
} | |
}, | |
"ball" : { | |
"value" : "Y10" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D20" | |
}, | |
"mux3" : { | |
"value" : "CSI1_MCLK" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 24, | |
"func" : "PD19", | |
"detail" : "(LCDD19/LVDS1N3)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD19", | |
"reference" : { | |
"uri" : "#PD19" | |
} | |
}, | |
"ball" : { | |
"value" : "AA11" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D19" | |
}, | |
"mux3" : { | |
"value" : "LVDS1_VN3" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 25, | |
"func" : "PD22", | |
"detail" : "(LCDD22)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD22", | |
"reference" : { | |
"uri" : "#PD22" | |
} | |
}, | |
"ball" : { | |
"value" : "AB10" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D22" | |
}, | |
"mux3" : { | |
"value" : "SMC_VPPPP" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 26, | |
"func" : "PD21", | |
"detail" : "(LCDD21)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD21", | |
"reference" : { | |
"uri" : "#PD21" | |
} | |
}, | |
"ball" : { | |
"value" : "AA10" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D21" | |
}, | |
"mux3" : { | |
"value" : "SMC_VPPEN" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 27, | |
"func" : "PD27", | |
"detail" : "(LCDVSYNC)-VGA-VSYNC", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD27", | |
"reference" : { | |
"uri" : "#PD27" | |
} | |
}, | |
"ball" : { | |
"value" : "AC9" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_VSYNC" | |
}, | |
"mux3" : { | |
"value" : "SMC_SDA" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 28, | |
"func" : "PD23", | |
"detail" : "(LCDD23)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD23", | |
"reference" : { | |
"uri" : "#PD23" | |
} | |
}, | |
"ball" : { | |
"value" : "AC10" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_D23" | |
}, | |
"mux3" : { | |
"value" : "SMC_DET" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 29, | |
"func" : "PD24", | |
"detail" : "(LCDCLK)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD24", | |
"reference" : { | |
"uri" : "#PD24" | |
} | |
}, | |
"ball" : { | |
"value" : "Y9" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_CLK" | |
}, | |
"mux3" : { | |
"value" : "SMC_VCCEN" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 30, | |
"func" : "PD26", | |
"detail" : "(LCDHSYNC)-VGA-HSYNC", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD26", | |
"reference" : { | |
"uri" : "#PD26" | |
} | |
}, | |
"ball" : { | |
"value" : "AB9" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_HSYNC" | |
}, | |
"mux3" : { | |
"value" : "SMC_SCK" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 31, | |
"func" : "PB2", | |
"detail" : "(PWM0)", | |
"details" : { | |
"group" : { | |
"id" : "PB", | |
"label" : "Port Bank B" | |
}, | |
"port" : { | |
"value" : "PB02", | |
"reference" : { | |
"uri" : "#PB02" | |
} | |
}, | |
"ball" : { | |
"value" : "A14" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "PWM0" | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 32, | |
"func" : "PD25", | |
"detail" : "(LCDDE)", | |
"details" : { | |
"group" : { | |
"id" : "PD", | |
"label" : "Port Bank D" | |
}, | |
"port" : { | |
"value" : "PD25", | |
"reference" : { | |
"uri" : "#PD25" | |
} | |
}, | |
"ball" : { | |
"value" : "AA9" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD0_DE" | |
}, | |
"mux3" : { | |
"value" : "SMC_RST" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 33, | |
"func" : "YP_TP", | |
"detail" : "(TP-Y1)", | |
"details" : null | |
}, { | |
"pinNum" : 34, | |
"func" : "XP_TP", | |
"detail" : "(TP-X1)", | |
"details" : null | |
}, { | |
"pinNum" : 35, | |
"func" : "YN_TP", | |
"detail" : "(TP-Y2)", | |
"details" : null | |
}, { | |
"pinNum" : 36, | |
"func" : "XN_TP", | |
"detail" : "(TP-X2)", | |
"details" : null | |
}, { | |
"pinNum" : 37, | |
"func" : "PH7", | |
"detail" : "(LCD0-BL-EN/LCD-PIO0/UART5-RX/EINT7)", | |
"details" : { | |
"group" : { | |
"id" : "PH", | |
"label" : "Port Bank H" | |
}, | |
"port" : { | |
"value" : "PH07", | |
"reference" : { | |
"uri" : "#PH07" | |
} | |
}, | |
"ball" : { | |
"value" : "B4" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD1_D07" | |
}, | |
"mux3" : { | |
"value" : "ATAD03" | |
}, | |
"mux4" : { | |
"value" : "UART5_RX" | |
}, | |
"mux5" : { | |
"value" : "MS_CLK" | |
}, | |
"mux6" : { | |
"value" : "EINT7" | |
}, | |
"mux7" : { | |
"value" : "CSI1_D7" | |
} | |
} | |
}, { | |
"pinNum" : 38, | |
"func" : "Ground", | |
"details" : null | |
}, { | |
"pinNum" : 39, | |
"func" : "PB11", | |
"detail" : "(LCD0-SDA/LCD-PIO2)", | |
"details" : { | |
"group" : { | |
"id" : "PB", | |
"label" : "Port Bank B" | |
}, | |
"port" : { | |
"value" : "PB11", | |
"reference" : { | |
"uri" : "#PB11" | |
} | |
}, | |
"ball" : { | |
"value" : "C10" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "I2S_DO3" | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 40, | |
"func" : "PB10", | |
"detail" : "(LCD0-SCK/LCD-PIO1)", | |
"details" : { | |
"group" : { | |
"id" : "PB", | |
"label" : "Port Bank B" | |
}, | |
"port" : { | |
"value" : "PB10", | |
"reference" : { | |
"uri" : "#PB10" | |
} | |
}, | |
"ball" : { | |
"value" : "C11" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "I2S_DO2" | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 41, | |
"func" : "SPDIF", | |
"details" : null | |
}, { | |
"pinNum" : 42, | |
"func" : "Ground", | |
"details" : null | |
}, { | |
"pinNum" : 43, | |
"func" : "VCC-5V", | |
"details" : null | |
}, { | |
"pinNum" : 44, | |
"func" : "3.3V", | |
"detail" : "(nc in 2012-08-08)", | |
"details" : null | |
}, { | |
"pinNum" : 45, | |
"func" : "PI10", | |
"detail" : "(SPI0-CS/UART5-TX/EINT22)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI10", | |
"reference" : { | |
"uri" : "#PI10" | |
} | |
}, | |
"ball" : { | |
"value" : "C17" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SPI0_CS0", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SPI&action=edit&redlink=1", | |
"title" : "A10/SPI (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "UART5_TX", | |
"reference" : { | |
"uri" : "/index.php?title=A10/UART&action=edit&redlink=1", | |
"title" : "A10/UART (page does not exist)" | |
} | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "EINT22" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 46, | |
"func" : "PI12", | |
"detail" : "(SPI0-MOSI/UART6-TX/EINT24)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI12", | |
"reference" : { | |
"uri" : "#PI12" | |
} | |
}, | |
"ball" : { | |
"value" : "C16" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SPI0_MOSI", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SPI&action=edit&redlink=1", | |
"title" : "A10/SPI (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "UART6_TX", | |
"reference" : { | |
"uri" : "/index.php?title=A10/UART&action=edit&redlink=1", | |
"title" : "A10/UART (page does not exist)" | |
} | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "EINT24" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 47, | |
"func" : "PI11", | |
"detail" : "(SPI0-CLK/UART5-RX/EINT23)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI11", | |
"reference" : { | |
"uri" : "#PI11" | |
} | |
}, | |
"ball" : { | |
"value" : "D17" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SPI0_CLK", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SPI&action=edit&redlink=1", | |
"title" : "A10/SPI (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "UART5_RX", | |
"reference" : { | |
"uri" : "/index.php?title=A10/UART&action=edit&redlink=1", | |
"title" : "A10/UART (page does not exist)" | |
} | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "EINT23" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 48, | |
"func" : "PI13", | |
"detail" : "(SPI0-MISO/UART6-RX/EINT25)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI13", | |
"reference" : { | |
"uri" : "#PI13" | |
} | |
}, | |
"ball" : { | |
"value" : "D16" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SPI0_MISO", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SPI&action=edit&redlink=1", | |
"title" : "A10/SPI (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "UART6_RX", | |
"reference" : { | |
"uri" : "/index.php?title=A10/UART&action=edit&redlink=1", | |
"title" : "A10/UART (page does not exist)" | |
} | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "EINT25" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}] | |
}, | |
"U15" : { | |
"description" : "next to SATA connector", | |
"x" : 503, | |
"y" : 86, | |
"portOrientation" : "rb", | |
"colCount": 2, | |
"pins" : [{ | |
"pinNum" : 1, | |
"func" : "VCC-5V", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 2, | |
"func" : "PH15", | |
"detail" : "(CSI1-PWR/EINT15)", | |
"details" : { | |
"group" : { | |
"id" : "PH", | |
"label" : "Port Bank H" | |
}, | |
"port" : { | |
"value" : "PH15", | |
"reference" : { | |
"uri" : "#PH15" | |
} | |
}, | |
"ball" : { | |
"value" : "A1" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD1_D15" | |
}, | |
"mux3" : { | |
"value" : "ATAD11" | |
}, | |
"mux4" : { | |
"value" : "KP_IN5" | |
}, | |
"mux5" : { | |
"value" : "SMC_VPPPP" | |
}, | |
"mux6" : { | |
"value" : "EINT15" | |
}, | |
"mux7" : { | |
"value" : "CSI1_D15" | |
} | |
} | |
}, { | |
"pinNum" : 3, | |
"func" : "CSI1-IO-2V8", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 4, | |
"func" : "PH14", | |
"detail" : "(CSI1-RST#/EINT14)", | |
"details" : { | |
"group" : { | |
"id" : "PH", | |
"label" : "Port Bank H" | |
}, | |
"port" : { | |
"value" : "PH14", | |
"reference" : { | |
"uri" : "#PH14" | |
} | |
}, | |
"ball" : { | |
"value" : "B2" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "LCD1_D14" | |
}, | |
"mux3" : { | |
"value" : "ATAD10" | |
}, | |
"mux4" : { | |
"value" : "KP_IN4" | |
}, | |
"mux5" : { | |
"value" : "SMC_VPPEN" | |
}, | |
"mux6" : { | |
"value" : "EINT14" | |
}, | |
"mux7" : { | |
"value" : "CSI1_D14" | |
} | |
} | |
}, { | |
"pinNum" : 5, | |
"func" : "PG0", | |
"detail" : "(CSI1-PCLK/SDC1-CMD)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG00", | |
"reference" : { | |
"uri" : "#PG00" | |
} | |
}, | |
"ball" : { | |
"value" : "F20" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_CLK" | |
}, | |
"mux3" : { | |
"value" : "CSI1_PCK" | |
}, | |
"mux4" : { | |
"value" : "SDC1_CMD" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 6, | |
"func" : "PB18", | |
"detail" : "(TWI1-SCK)", | |
"details" : { | |
"group" : { | |
"id" : "PB", | |
"label" : "Port Bank B" | |
}, | |
"port" : { | |
"value" : "PB18", | |
"reference" : { | |
"uri" : "#PB18" | |
} | |
}, | |
"ball" : { | |
"value" : "A8" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TWI1_SCK", | |
"reference" : { | |
"uri" : "/I%C2%B2C", | |
"title" : "I²C" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 7, | |
"func" : "PB19", | |
"detail" : "(TWI1-SDA)", | |
"details" : { | |
"group" : { | |
"id" : "PB", | |
"label" : "Port Bank B" | |
}, | |
"port" : { | |
"value" : "PB19", | |
"reference" : { | |
"uri" : "#PB19" | |
} | |
}, | |
"ball" : { | |
"value" : "B8" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TWI1_SDA", | |
"reference" : { | |
"uri" : "/I%C2%B2C", | |
"title" : "I²C" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 8, | |
"func" : "PG3", | |
"detail" : "(CSI1-VSYNC/SDC1-D1)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG03", | |
"reference" : { | |
"uri" : "#PG03" | |
} | |
}, | |
"ball" : { | |
"value" : "D21" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_DVLD" | |
}, | |
"mux3" : { | |
"value" : "CSI1_VSYNC" | |
}, | |
"mux4" : { | |
"value" : "SDC1_D1" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 9, | |
"func" : "PG2", | |
"detail" : "(CSI1-HSYNC/SDC1-D0)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG02", | |
"reference" : { | |
"uri" : "#PG02" | |
} | |
}, | |
"ball" : { | |
"value" : "E20" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_SYNC" | |
}, | |
"mux3" : { | |
"value" : "CSI1_HSYNC" | |
}, | |
"mux4" : { | |
"value" : "SDC1_D0" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 10, | |
"func" : "PG1", | |
"detail" : "(CSI1-MCLK/SDC1-CLK)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG01", | |
"reference" : { | |
"uri" : "#PG01" | |
} | |
}, | |
"ball" : { | |
"value" : "E21" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_ERR" | |
}, | |
"mux3" : { | |
"value" : "CSI1_CK" | |
}, | |
"mux4" : { | |
"value" : "SDC1_CLK" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 11, | |
"func" : "PG4", | |
"detail" : "(CSI1-D0/SDC1-D2)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG04", | |
"reference" : { | |
"uri" : "#PG04" | |
} | |
}, | |
"ball" : { | |
"value" : "D20" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D0" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D0" | |
}, | |
"mux4" : { | |
"value" : "SDC1_D2" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D8" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 12, | |
"func" : "PG5", | |
"detail" : "(CSI1-D1/SDC1-D3)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG05", | |
"reference" : { | |
"uri" : "#PG05" | |
} | |
}, | |
"ball" : { | |
"value" : "C21" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D1" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D1" | |
}, | |
"mux4" : { | |
"value" : "SDC1_D3" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D9" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 13, | |
"func" : "PG6", | |
"detail" : "(CSI1-D2/UART3-TX)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG06", | |
"reference" : { | |
"uri" : "#PG06" | |
} | |
}, | |
"ball" : { | |
"value" : "E19" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D2" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D2" | |
}, | |
"mux4" : { | |
"value" : "UART3_TX" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D10" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 14, | |
"func" : "PG7", | |
"detail" : "(CSI1-D3/UART3-RX)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG07", | |
"reference" : { | |
"uri" : "#PG07" | |
} | |
}, | |
"ball" : { | |
"value" : "C20" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D3" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D3" | |
}, | |
"mux4" : { | |
"value" : "UART3_RX" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D11" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 15, | |
"func" : "PG8", | |
"detail" : "(CSI1-D4/UART3-RTS)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG08", | |
"reference" : { | |
"uri" : "#PG08" | |
} | |
}, | |
"ball" : { | |
"value" : "D19" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D4" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D4" | |
}, | |
"mux4" : { | |
"value" : "UART3_RTS" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D12" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 16, | |
"func" : "PG9", | |
"detail" : "(CSI1-D5/UART3-CTS)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG09", | |
"reference" : { | |
"uri" : "#PG09" | |
} | |
}, | |
"ball" : { | |
"value" : "C19" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D5" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D5" | |
}, | |
"mux4" : { | |
"value" : "UART3_CTS" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D13" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 17, | |
"func" : "PG10", | |
"detail" : "(CSI1-D6/UART4-TX)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG10", | |
"reference" : { | |
"uri" : "#PG10" | |
} | |
}, | |
"ball" : { | |
"value" : "D18" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D6" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D6" | |
}, | |
"mux4" : { | |
"value" : "UART4_TX" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D14" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 18, | |
"func" : "PG11", | |
"detail" : "(CSI1-D7/UART4-RX)", | |
"details" : { | |
"group" : { | |
"id" : "PG", | |
"label" : "Port Bank G" | |
}, | |
"port" : { | |
"value" : "PG11", | |
"reference" : { | |
"uri" : "#PG11" | |
} | |
}, | |
"ball" : { | |
"value" : "C18" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS1_D7" | |
}, | |
"mux3" : { | |
"value" : "CSI1_D7" | |
}, | |
"mux4" : { | |
"value" : "UART4_RX" | |
}, | |
"mux5" : { | |
"value" : "CSI0_D15" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 19, | |
"func" : "Ground", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 20, | |
"func" : "Ground", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 21, | |
"func" : "FMINL", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 22, | |
"func" : "PI4", | |
"detail" : "(SDC3-CMD)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI04", | |
"reference" : { | |
"uri" : "#PI04" | |
} | |
}, | |
"ball" : { | |
"value" : "A18" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SDC3_CMD", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SDC&action=edit&redlink=1", | |
"title" : "A10/SDC (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 23, | |
"func" : "FMINR", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 24, | |
"func" : "PI5", | |
"detail" : "(SDC3-CLK)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI05", | |
"reference" : { | |
"uri" : "#PI05" | |
} | |
}, | |
"ball" : { | |
"value" : "B18" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SDC3_CLK", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SDC&action=edit&redlink=1", | |
"title" : "A10/SDC (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 25, | |
"func" : "Ground", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 26, | |
"func" : "PI6", | |
"detail" : "(SDC3-D0)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI06", | |
"reference" : { | |
"uri" : "#PI06" | |
} | |
}, | |
"ball" : { | |
"value" : "A17" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SDC3_D0", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SDC&action=edit&redlink=1", | |
"title" : "A10/SDC (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 27, | |
"func" : "VGA-R", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 28, | |
"func" : "PI7", | |
"detail" : "(SDC3-D1)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI07", | |
"reference" : { | |
"uri" : "#PI07" | |
} | |
}, | |
"ball" : { | |
"value" : "B17" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SDC3_D1", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SDC&action=edit&redlink=1", | |
"title" : "A10/SDC (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 29, | |
"func" : "VGA-G", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 30, | |
"func" : "PI8", | |
"detail" : "(SDC3-D2)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI08", | |
"reference" : { | |
"uri" : "#PI08" | |
} | |
}, | |
"ball" : { | |
"value" : "A16" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SDC3_D2", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SDC&action=edit&redlink=1", | |
"title" : "A10/SDC (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 31, | |
"func" : "VGA-B", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 32, | |
"func" : "PI9", | |
"detail" : "(SDC3-D3)", | |
"details" : { | |
"group" : { | |
"id" : "PI", | |
"label" : "Port Bank I" | |
}, | |
"port" : { | |
"value" : "PI09", | |
"reference" : { | |
"uri" : "#PI09" | |
} | |
}, | |
"ball" : { | |
"value" : "B16" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "SDC3_D3", | |
"reference" : { | |
"uri" : "/index.php?title=A10/SDC&action=edit&redlink=1", | |
"title" : "A10/SDC (page does not exist)" | |
} | |
}, | |
"mux3" : { | |
"value" : "reserved" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 33, | |
"func" : "LCD1-VSYNC", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 34, | |
"func" : "PE4", | |
"detail" : "(CSI0-D0)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE04", | |
"reference" : { | |
"uri" : "#PE04" | |
} | |
}, | |
"ball" : { | |
"value" : "C23" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D0" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D0" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 35, | |
"func" : "LCD1-HSYNC", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 36, | |
"func" : "PE5", | |
"detail" : "(CSI0-D1)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE05", | |
"reference" : { | |
"uri" : "#PE05" | |
} | |
}, | |
"ball" : { | |
"value" : "C22" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D1" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D1" | |
}, | |
"mux4" : { | |
"value" : "SMC_VPPEN" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 37, | |
"func" : "Ground", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 38, | |
"func" : "PE6", | |
"detail" : "(CSI0-D2)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE06", | |
"reference" : { | |
"uri" : "#PE06" | |
} | |
}, | |
"ball" : { | |
"value" : "B23" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D2" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D2" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 39, | |
"func" : "AVCC", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 40, | |
"func" : "PE7", | |
"detail" : "(CSI0-D3)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE07", | |
"reference" : { | |
"uri" : "#PE07" | |
} | |
}, | |
"ball" : { | |
"value" : "B22" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D3" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D3" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 41, | |
"func" : "LRADC0", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 42, | |
"func" : "PE8", | |
"detail" : "(CSI0-D4)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE08", | |
"reference" : { | |
"uri" : "#PE08" | |
} | |
}, | |
"ball" : { | |
"value" : "A23" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D4" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D4" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 43, | |
"func" : "CVBS", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 44, | |
"func" : "PE9", | |
"detail" : "(CSI0-D5)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE09", | |
"reference" : { | |
"uri" : "#PE09" | |
} | |
}, | |
"ball" : { | |
"value" : "A22" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D5" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D5" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 45, | |
"func" : "HPL", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 46, | |
"func" : "PE10", | |
"detail" : "(CSI0-D6)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE10", | |
"reference" : { | |
"uri" : "#PE10" | |
} | |
}, | |
"ball" : { | |
"value" : "B21" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D6" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D6" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}, { | |
"pinNum" : 47, | |
"func" : "HPR", | |
"detail" : "", | |
"details" : null | |
}, { | |
"pinNum" : 48, | |
"func" : "PE11", | |
"detail" : "(CSI0-D7)", | |
"details" : { | |
"group" : { | |
"id" : "PE", | |
"label" : "Port Bank E" | |
}, | |
"port" : { | |
"value" : "PE11", | |
"reference" : { | |
"uri" : "#PE11" | |
} | |
}, | |
"ball" : { | |
"value" : "A21" | |
}, | |
"type" : { | |
"value" : "I/O" | |
}, | |
"mux2" : { | |
"value" : "TS0_D7" | |
}, | |
"mux3" : { | |
"value" : "CSI0_D7" | |
}, | |
"mux4" : { | |
"value" : "reserved" | |
}, | |
"mux5" : { | |
"value" : "reserved" | |
}, | |
"mux6" : { | |
"value" : "reserved" | |
}, | |
"mux7" : { | |
"value" : "reserved" | |
} | |
} | |
}] | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>The unofficial Cubieboard A10 - pinout diagram</title> | |
</head> | |
<body> | |
<div id="container"> | |
</div> | |
<script src="http://d3lp1msu2r81bx.cloudfront.net/kjs/js/lib/kinetic-v5.0.2.min.js"></script> | |
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script> | |
<script src="./cubie_a10.js"></script> | |
<script src="./pinout_diagram.js"></script> | |
<script src="./pin_functions.js"></script> | |
<script> | |
new window.tc.pinout.PinoutDiagram(); | |
</script> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var colours = { | |
grey1 : '#1b5376', | |
grey2 : '#878d8b', | |
grey3 : '#bfc4ca', | |
brown1 : '#7d644e', | |
brown2 : '#7b4346', | |
coffee : '#bda991', | |
crem1 : '#d2c1a5', | |
crem2 : '#f0ebd8', | |
crem3 : '#f5e3cd', | |
cyan1 : '#07897f', | |
cyan2 : '#489ba1', | |
cyan3 : '#91bbc7', | |
cyan4 : '#cadcde', | |
green1 : '#439481', | |
green2 : '#63a090', | |
greenPure : '#0F0', | |
yellow1 : '#f3de73', | |
yellow2 : '#ffffd1', | |
blue1 : '#1b5378', | |
blue2 : '#34699f', | |
blue3 : '#547caf', | |
blue4 : '#a0bcd2', | |
blue5 : '#1d7baf', | |
blue6 : '#28388d', | |
bluePure : '#00F', | |
violet1 : '#7b5785', | |
violet2 : '#9482aa', | |
violet3 : '#dbc4cc', | |
red1 : '#d85d72', | |
red2 : '#cb6e83', | |
red3 : '#eaaeb8', | |
red4 : '#e5c8c2', | |
red5 : '#c54b48', | |
red6 : '#e26e71', | |
red7: '#eb918f', | |
red8 : '#d9232a', | |
redPure :'#F00', | |
orange1 : '#b24854', | |
orange2 : '#f2ad90', | |
orange3 : '#fdeedb' | |
}; | |
var styles = [{ | |
func : "uart", | |
description : { | |
longName : "Universal Asynchronous Receiver/Transmitter", | |
text : "Used for serial communication with a peripheral." | |
}, | |
style : { | |
color : '#000', | |
background : colours.coffee, | |
border : '#000' | |
} | |
}, { | |
func : "eint", | |
description : { | |
longName : "External Interrupt source", | |
text : "The Interrupt Controller can handle individually maskable interrupt sources up to 95." | |
}, | |
style : { | |
color : '#000', | |
background : colours.cyan2, | |
border : '#000' | |
} | |
}, { | |
func : "spi", | |
description : { | |
longName : "Serial Peripheral Interface", | |
text : "A synchronius serial link standard." | |
}, | |
style : { | |
color : '#000', | |
background : colours.yellow1, | |
border : '#000' | |
} | |
}, { | |
func : "vga-b", | |
description : { | |
longName : "VGA Blue" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.bluePure, | |
border : '#947977' | |
} | |
}, { | |
func : "vga-r", | |
description : { | |
longName : "VGA Red" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.redPure, | |
border : '#947977' | |
} | |
}, { | |
func : "vga-g", | |
description : { | |
longName : "VGA Green" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.greenPure, | |
border : '#947977' | |
} | |
}, { | |
func : "sdc", | |
description : { | |
longName : "[Undocumented] possible - Secure Digital Card" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.blue6, | |
border : '#947977' | |
} | |
}, { | |
func : "lvds", | |
description : { | |
longName : "LVSD Controller " | |
}, | |
style : { | |
color : '#000008', | |
background : colours.blue1, | |
border : '#947977' | |
} | |
}, { | |
func : "lcd", | |
description : { | |
longName : "LCD Controller " | |
}, | |
style : { | |
color : '#000008', | |
background : colours.violet1, | |
border : '#947977' | |
} | |
}, { | |
func : "csi", | |
description : { | |
longName : "Camera Sensor Interface", | |
text : "Used for serial communication with a peripheral." | |
}, | |
style : { | |
color : '#000008', | |
background : colours.green1, | |
border : '#61795a' | |
} | |
}, { | |
func : "ts", | |
description : { | |
longName : "Transport Stream - ISO13818-1", | |
text : " Electrical serial bus interface standard used for connecting digital audio devices together." | |
}, | |
style : { | |
color : '#000008', | |
background : colours.blue3, | |
border : '#61795a' | |
} | |
}, { | |
func : "twi", | |
description : { | |
longName : "Two wire interface, a.k.a I2C", | |
text : " Electrical serial bus interface standard used for connecting digital audio devices together." | |
}, | |
style : { | |
color : '#000008', | |
background : colours.yellow2, | |
border : '#61795a' | |
} | |
}, { | |
func : "tp", | |
description : { | |
longName : "Touch Pad", | |
text : " Electrical serial bus interface standard used for connecting digital audio devices together." | |
}, | |
style : { | |
color : '#000008', | |
background : colours.orange3, | |
border : '#61795a' | |
} | |
}, { | |
func : "i2s", | |
description : { | |
longName : "IIS or Integrated Interchip Sound", | |
text : " Electrical serial bus interface standard used for connecting digital audio devices together." | |
}, | |
style : { | |
color : '#000008', | |
background : colours.orange2, | |
border : '#61795a' | |
} | |
}, { | |
func : "smc", | |
description : { | |
longName : "[Undocumented] posible - Smart Card Interface" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.blue4, | |
border : '#947977' | |
} | |
}, { | |
func : "lradc", | |
description : { | |
longName : "Low resolution ADC" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.brown2, | |
border : '#947977' | |
} | |
}, { | |
func : "kp", | |
description : { | |
longName : "Keypad interface" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.violet3, | |
border : '#947977' | |
} | |
}, { | |
func : "hp", | |
description : { | |
longName : "Headphone" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.red6, | |
border : '#947977' | |
} | |
}, { | |
func : "fmi", | |
description : { | |
longName : "FM radio input" | |
}, | |
style : { | |
color : '#000008', | |
background : colours.red5, | |
border : '#947977' | |
} | |
}, { | |
func : "pwm", | |
description : { | |
longName : "Power with modulation " | |
}, | |
style : { | |
color : '#000008', | |
background : colours.red7, | |
border : '#947977' | |
} | |
}, { | |
func : "gro", | |
description : { | |
longName : "Ground", | |
text : "Ground" | |
}, | |
style : { | |
color : '#FFF', | |
background : '#000', | |
border : '#111' | |
} | |
}, { | |
func : "vcc", | |
description : { | |
longName : "5V" | |
}, | |
style : { | |
color : '#000', | |
background : colours.red8, | |
border : '#000' | |
} | |
}, { | |
func : "3.3", | |
description : { | |
longName : "3.3V" | |
}, | |
style : { | |
color : '#000', | |
background : '#ff9000', | |
border : '#000' | |
} | |
}, { | |
func : "p", | |
description : { | |
longName : "Generic I/O pin " | |
}, | |
style : { | |
color : '#fffffa', | |
background : '#60605d', | |
border : '#42423e' | |
} | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function objectPath(object, path, createIfNull) { | |
var retval = object; | |
var chunks = path.split('.'); | |
var fragment = chunks.shift(); | |
if (fragment) { | |
if (!object[fragment]) { | |
object[fragment] = {}; | |
} | |
retval = objectPath(object[fragment], chunks.join('.')); | |
} | |
return retval; | |
}; | |
function extend(target, source) { | |
target = target || {}; | |
for (var prop in source) { | |
if ( typeof source[prop] === 'object') { | |
target[prop] = extend(target[prop], source[prop]); | |
} else { | |
target[prop] = source[prop]; | |
} | |
} | |
return target; | |
};( function(window, Kinetic) { | |
var pinDetailProperties = ['mux2', 'mux3', 'mux4', 'mux5', 'mux6', 'mux7']; | |
var defaultStyle = { | |
color : '#555', | |
background : '#ddd', | |
border : '#555' | |
}; | |
var namespa = objectPath(window, "tc.pinout"); | |
namespa.PinoutDiagram = function(options) { | |
this.options = extend(namespa.PinoutDiagram.defaults, options || {}); | |
this.init(); | |
}; | |
namespa.PinoutDiagram.defaults = { | |
container : 'container', | |
// Distances and properties of drawable elements for the scale 1, they are adjusted dinamicaly with the configured scale when used. | |
resource : { | |
background : [{ | |
label : 'schematic', | |
file : './CubieboardA10_schematic.png' | |
}, { | |
label : 'mesh', | |
file : './CubieboardA10_mesh.png' | |
}] | |
}, | |
drawable : { | |
fontFamily : 'Tahoma, monospace', | |
stage : { | |
width : 2400, | |
height : 2000, | |
scale : { | |
x : 2, | |
y : 2 | |
} | |
}, | |
legend : { | |
position : { | |
x : 20, | |
y : 530 | |
}, | |
fontSize : 14 | |
}, | |
schematic : { | |
offset : { | |
x : 300, | |
y : 50 | |
}, | |
pin : { | |
spacing : 17.5 | |
} | |
} | |
} | |
}; | |
namespa.PinoutDiagram.prototype = { | |
init : function() { | |
this.initLayout(); | |
}, | |
/** creates a Kinetic Stage with the options defined in this Widget **/ | |
initLayout : function() { | |
var layout = {}; | |
this.layout = layout; | |
var stage = this.initStage(); | |
var backgroundLayer = this.initLayer(); | |
this.initBackground(backgroundLayer); | |
var layer = this.initLayer(); | |
var mainGroup = new Kinetic.Group({id: 'mainGroup'}); | |
this.drawSchematic(mainGroup); | |
this.drawExpansionPort(mainGroup, expansionPorts.U14); | |
this.drawExpansionPort(mainGroup, expansionPorts.U15); | |
this.drawTitle(mainGroup); | |
this.drawLegend(mainGroup); | |
layout.layer = layer; | |
layout.stage = stage; | |
layout.backgroundLayer = backgroundLayer; | |
stage.add(backgroundLayer); | |
console.log(mainGroup, mainGroup.getAttr('width')); | |
layer.add(mainGroup); | |
stage.add(layer); | |
}, | |
initStage : function() { | |
return new Kinetic.Stage({ | |
container : this.options.container, | |
width : this.options.drawable.stage.width, | |
height : this.options.drawable.stage.height, | |
scale : { | |
x : this.options.drawable.stage.scale.x, | |
y : this.options.drawable.stage.scale.y | |
} | |
}); | |
}, | |
initLayer : function() { | |
return new Kinetic.Layer(); | |
}, | |
initImage : function() { | |
return { | |
drawable : new Kinetic.Image() | |
}; | |
}, | |
drawTitle : function(layer) { | |
var group = new Kinetic.Group({ | |
x : 20, | |
y : 20 | |
}); | |
var text = new Kinetic.Text({ | |
x : 0, | |
y : 2, | |
text : 'THE UNOFFICIAL\nCUBIEBOARD A10\n(r.09.09.2012)\nPINOUT DIAGRAM', | |
fontSize : 16, | |
fontFamily : this.options.drawable.fontFamily, | |
fill : 'black', | |
align : 'center', | |
fontStyle : 'bold', | |
width : 200 | |
}); | |
group.add(text); | |
layer.add(group); | |
}, | |
drawLegend : function(layer) { | |
var group = new Kinetic.Group({ | |
x : this.options.drawable.legend.position.x, | |
y : this.options.drawable.legend.position.y | |
}); | |
var text = new Kinetic.Text({ | |
x : 0, | |
y : 2, | |
text : 'Legend', | |
fontSize : this.options.drawable.legend.fontSize, | |
fontFamily : this.options.drawable.fontFamily, | |
fill : this.options.drawable.legend.fill, | |
align : 'center', | |
fontStyle : 'bold', | |
width : this.options.drawable.legend.width | |
}); | |
group.add(text); | |
for (var i = 0; i < styles.length; i++) { | |
var style = styles[i].style; | |
var rect = new Kinetic.Rect({ | |
x : 0, | |
y : 30 + 16 * i, | |
stroke : style.border, | |
strokeWidth : 1, | |
fill : style.background, | |
width : 14, | |
height : 14, | |
cornerRadius : 2 | |
}); | |
group.add(rect); | |
var description = styles[i].description; | |
if (description) { | |
//console.log(description); | |
var desc = new Kinetic.Text({ | |
x : 20, | |
y : 33 + 16 * i, | |
text : '- ' + description.longName, | |
fontSize : 8, | |
fontFamily : this.options.drawable.fontFamily, | |
fill : 'black', | |
align : 'left', | |
width : 300, | |
fontStyle : 'bold', | |
}); | |
group.add(desc); | |
} | |
} | |
layer.add(group); | |
}, | |
initBackground : function(layer) { | |
var backgrounds = this.options.resource.background; | |
this.layout.backgroundBundles = []; | |
for (var i = 0; i < backgrounds.length; i++) { | |
var image = this.initImage(backgrounds[i].label); | |
layer.add(image.drawable); | |
this.loadImage(backgrounds[i].file, image); | |
this.layout.backgroundBundles.push(image); | |
} | |
}, | |
expansionPortIdx : function(i, data) { | |
var pinIdx; | |
switch (data.portOrientation ) { | |
case 'lt': | |
if (i % data.colCount) { | |
pinIdx = i - 1; | |
} else { | |
pinIdx = i + 1; | |
} | |
break; | |
case 'rl': | |
pinIdx = data.pins.length - 1 - i; | |
break; | |
case 'rb': | |
var part = data.pins.length - 1 - i; | |
if (i % data.colCount) { | |
pinIdx = part + 1; | |
} else { | |
pinIdx = part - 1; | |
} | |
break; | |
default : | |
pinIdx = i; | |
} | |
return pinIdx; | |
}, | |
drawSchematic : function(layer) { | |
var rect = new Kinetic.Rect({ | |
x : 321, | |
y : 70, | |
stroke : '#1a1919', | |
strokeWidth : 2, | |
fill : '#1a1919', | |
width : 523, | |
height : 875, | |
cornerRadius : 10 | |
}); | |
layer.add(rect); | |
var couper = '#eadab3'; | |
var chip = "#292b28"; | |
// draw holes | |
var coords = [352.5, 99.5, 815.5, 99.5, 352.5, 742.5, 815.5, 742.5]; | |
var radiuses = [29.5, 22, 12]; | |
var fillBgs = ['white', '#eadab3', 'white']; | |
for (var i = 0; i < radiuses.length; i++) { | |
for (var j = 0; j < coords.length / 2; j++) { | |
var circle = new Kinetic.Circle({ | |
x : coords[j * 2], | |
y : coords[j * 2 + 1], | |
radius : radiuses[i], | |
fill : fillBgs[i], | |
stroke : 'black', | |
strokeWidth : 1, | |
opacity : 1 | |
}); | |
layer.add(circle); | |
} | |
} | |
var rectangles = [571.5, 67, 22, 9, 552.5, 76, 61.5, 22.5, 667.5, 50.5, 43, 18, 660.5, 69.5, 57.5, 102.5, 464, 297, 58, 58, 373, 760.5, 111.5, 150]; | |
var fillRect = [chip, 'white', chip, chip, chip, chip]; | |
for (var i = 0; i < rectangles.length / 4; i++) { | |
var erectie = new Kinetic.Rect({ | |
x : rectangles[i * 4], | |
y : rectangles[(i * 4) + 1], | |
stroke : 'black', | |
strokeWidth : 1, | |
opacity : 1, | |
fill : fillRect[i], | |
width : rectangles[(i * 4) + 2], | |
height : rectangles[(i * 4) + 3] | |
}); | |
layer.add(erectie); | |
}; | |
}, | |
drawExpansionPort : function(layer, data) { | |
var expansionPortGroup = new Kinetic.Group({ | |
x : this.options.drawable.schematic.offset.x, | |
y : this.options.drawable.schematic.offset.y | |
}); | |
for (var i = 0; i < data.pins.length; i++) { | |
// the port has a particular orientation | |
var pinIdx = this.expansionPortIdx(i, data); | |
// left or right | |
var side = i % data.colCount; | |
var pin = data.pins[pinIdx]; | |
var group = new Kinetic.Group(); | |
if (pin) { | |
var labelNum = Math.floor(i / data.colCount); | |
var x = side * this.options.drawable.schematic.pin.spacing + data.x - 2; | |
var y = Math.floor(i / data.colCount) * this.options.drawable.schematic.pin.spacing + data.y - 2; | |
var pinUi = this.initPin(x, y, pin, side); | |
group.add(pinUi); | |
} | |
expansionPortGroup.add(group); | |
} | |
layer.add(expansionPortGroup); | |
}, | |
initPin : function(x, y, pin, side) { | |
var group = new Kinetic.Group({ | |
x : x, | |
y : y | |
}); | |
var pinStyle = this.styleForPin(pin.func); | |
var pinText = new Kinetic.Text({ | |
x : 0, | |
y : 2, | |
text : '' + pin.pinNum, | |
fontSize : 7, | |
fontFamily : this.options.drawable.fontFamily, | |
fill : pinStyle.color, | |
align : 'center', | |
fontStyle : 'bold', | |
width : 10 | |
}); | |
var pinBorder = new Kinetic.Rect({ | |
x : 0, | |
y : 0, | |
stroke : pinStyle.border, | |
strokeWidth : 1, | |
fill : pinStyle.background, | |
width : 10, | |
height : 10, | |
cornerRadius : 2 | |
}); | |
var labelW = 32; | |
var labelSpacing = 2.5; | |
var labelOffset = 10; | |
var details = pin.details; | |
var lastAdded; | |
var labelsGroup = new Kinetic.Group(); | |
for (var i = 0; i < 7; i++) { | |
var func = this.functionForPin(pin, details, i); | |
if (func) { | |
var label = this.labelForPinFunction(func); | |
var style = this.styleForPin(func); | |
var x; | |
if (side) { | |
x = labelOffset * 2 + (labelW + labelSpacing) * i; | |
} else { | |
x = -1 * (labelOffset + labelW * (i + 1) + labelSpacing * i); | |
} | |
var twoLines = label.length > 7; | |
var text = new Kinetic.Text({ | |
x : x, | |
y : twoLines ? -2 : 0, | |
text : label, | |
fontSize : 6, | |
fontFamily : this.options.drawable.fontFamily, | |
fontStyle : 'bold', | |
fill : style.color, | |
width : labelW, | |
padding : 2, | |
align : 'center' | |
}); | |
var rect = new Kinetic.Rect({ | |
x : x, | |
y : -2, | |
stroke : style.border, | |
strokeWidth : 1, | |
fill : style.background, | |
width : labelW, | |
height : 14, | |
cornerRadius : 2 | |
}); | |
lastCoordAdded = { | |
x : x, | |
y : -2 | |
}; | |
labelsGroup.add(rect); | |
labelsGroup.add(text); | |
} | |
} | |
this.drawConnnector(group, pinStyle.border); | |
group.add(labelsGroup); | |
group.add(pinBorder); | |
group.add(pinText); | |
return group; | |
}, | |
drawConnnector : function(group, color) { | |
if (lastCoordAdded) { | |
var line = new Kinetic.Line({ | |
x : 0, | |
y : 0, | |
points : [0, 5, lastCoordAdded.x, lastCoordAdded.y + 7], | |
stroke : color, | |
strokeWidth : 2, | |
tension : 1 | |
}); | |
group.add(line); | |
} | |
}, | |
labelForPinFunction : function(func) { | |
return func.replace('_', ' '); | |
}, | |
styleForPin : function(label) { | |
for (var i = 0; i < styles.length; i++) { | |
if (label.toLowerCase().indexOf(styles[i].func) > -1) { | |
return styles[i].style; | |
} | |
} | |
return defaultStyle; | |
}, | |
functionForPin : function(pin, details, mux) { | |
if (mux === 0) { | |
return pin.func; | |
} else if (details) { | |
var propName = pinDetailProperties[mux - 1]; | |
var prop = details[propName]; | |
if (prop && prop.value !== 'reserved') { | |
return details[propName].value; | |
} | |
} | |
return null; | |
}, | |
setStageSize : function(width, height, newScale) { | |
var stage = this.layout.stage; | |
stage.setAttr('width', width); | |
stage.setAttr('height', height); | |
if (newScale) { | |
stage.scale({ | |
x : newScale, | |
y : newScale | |
}); | |
} | |
this.options.scale = newScale; | |
stage.draw(); | |
}, | |
loadImageListener : function(data, ev) { | |
data.drawable.setAttr('image', data.image); | |
data.drawable.setAttr('width', data.image.width); | |
data.drawable.setAttr('height', data.image.height); | |
data.drawable.draw(); | |
}, | |
loadImage : function(url, imageBundle) { | |
var image = new Image(); | |
imageBundle.image = image; | |
image.onload = $.proxy(this.loadImageListener, this, imageBundle); | |
image.src = url; | |
} | |
}; | |
}(window, Kinetic)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment