I received my first Rhino, about a week ago and have not been able to even turn it on untill today and at first i was stumped when i would plug something into what i though was pin1 and nothing happened and looking at the brochure i realized the header numbers and pin numbers do not match and infact the are in some random order i am guessing for trace routing purposes , so i am trying to write a class that i could use to make my life simpler instead of ahving to go back and forth looking at the pin mapping.
but i am unsure how to go about it…
i want something along the lines of
public static class MyPins
{
public const Cpu.Pin StatusLED = Cpu.Pin.GPIO_Pin0;
public const Cpu.Pin UpButton = Cpu.Pin.GPIO_Pin1;
public const Cpu.Pin DowButton = Cpu.Pin.GPIO_Pin2;
public const Cpu.Pin Ser1Rx = Cpu.Pin. GPIO_Pin9;
public const Cpu.Pin Ser1Tx = Cpu.Pin. GPIO_Pin10;
}
but not exactly like that i do not want to have to type or paste this in every project i want to simply reference it as an assembly and use it like that …so how would i go about this…where to save it perhaps some insight on how the code might be structured