The code I reference here should be in the Documents Section (IMHO)

I found some code provided by Jay Jay that is about 3 years old.

How to convert a Socket.Pin to a Cpu.Pin?
https://www.ghielectronics.com/community/forum/topic?id=5000

Short and sweet method to find out about Socket/Socket Pin/CPU Pin.

//Code by Jay Jay
var mySocket = Socket.GetSocket(4, true, null, null);
for (var i = 1; i < 10; i++)
{
Debug.Print(“Socket Number= " + mySocket.Name + " has Socket Pin=” + i + " with assigned CPU PIN=" + mySocket.CpuPins[i].ToString());
}
/* Above Returns:
Socket Number= 4 has Socket Pin=1 with assigned CPU PIN=-1
Socket Number= 4 has Socket Pin=2 with assigned CPU PIN=-1
Socket Number= 4 has Socket Pin=3 with assigned CPU PIN=27
Socket Number= 4 has Socket Pin=4 with assigned CPU PIN=0
Socket Number= 4 has Socket Pin=5 with assigned CPU PIN=1
Socket Number= 4 has Socket Pin=6 with assigned CPU PIN=2
Socket Number= 4 has Socket Pin=7 with assigned CPU PIN=3
Socket Number= 4 has Socket Pin=8 with assigned CPU PIN=30
Socket Number= 4 has Socket Pin=9 with assigned CPU PIN=31
*/

Sure saves a lot of time compared to hunting Socket pins to CPU pins on a schematic!

1 Like

Nice indeed. I’ve been trying to think of ways to contribute to the Gadgeteer designer once its fully open sourced and Microsoft starts accepting pull requests. Intelligence like this that shows in the properties box when you click on a socket in the designer would be great and an easy sort of contribution for the community to make.

1 Like