fp1
March 27, 2013, 10:25am
1
Which port do i have to take, to drive the green “Configurable LED”. Or is this only for internal use?
From the schematics I can see, that the LED is connected to pin PC4. So I tried the following:
static OutputPort greenLED;
greenLED = new OutputPort(FEZCerberus.Pin.PC14, true);
But I get an exception, while executing that.
Justin
March 27, 2013, 10:36am
2
Mainboard.SetDebugLED(true);
Justin
March 27, 2013, 10:39am
3
Or…
private static Cpu.Pin DebugLedPin = GHI.OSHW.Hardware.FEZCerberus.Pin.PC4;
private static OutputPort debugled = new OutputPort(DebugLedPin, false);
public static void Main()
{
debugled.Write(true);
}
*Edit - this is for Vanilla NETMF not Gadgeteer
1 Like
You can’t use IO number if you are using Gadgeteer project, because Mainboard has reserved that pin and you can only use it as Justin specified in his first reply. On plain Net MF you can use IO number.
1 Like
fp1
March 27, 2013, 10:46am
5
Thank you guys! I’ve just thought too much about the schematics.
Now it’s working.
Which port on the sockets could i use to drive an external LED?
fp1
March 27, 2013, 10:48am
6
You’re right, PC4 was meant by me.
Justin
March 27, 2013, 10:54am
7
fp1
March 27, 2013, 11:01am
8
Nice Chart. The output-voltage will be 3v3?