reposted from THE NETMF GUIDE EBOOK WAS UPDATED topic
[quote]LED = new OutputPort((Cpu.Pin)FEZ_Pin.Digital.LED, true);
because FEZ_Pin is not recognised “using” any of the GHI namespaces, whether referenced or not.
Instead I got the diode blinking on a button attached to socket X with this line:
LED = new OutputPort((Cpu.Pin)5, true);
Hi, I’m new to Gadgeteer/FEZ - hoping someone could give me some direction on this. I’m using the Spider and have the eblock extender and some modules - trying to get the piezo to work.
In the previously stated issue, what reference should be used for FEZ_Pin? I’m getting the same error. Or if it’s to be done a different way, are there some code samples?
What I found is (with FEZ_Pin having the issue):
public Piezo(FEZ_Pin.PWM pin)
pwm = new PWM((PWM.Pin)pin);
I see that FEZ_Pin is in the FEZmini_… reference, but that won’t work.
I apologize if this is a dumb question. I’m reading a couple of the beginner guides and searching for answers, but not quite finding the answers.