Hi guys,
Just wondering if anyone can help me with syntax examples for plain NETMF on Gadeteer? I’m a hardware guy so my programming isn’t very good…
I’m just trying to get some PWM and input buttons working on my Cerb40, I have some Panda II code but not sure how to get it working on the Cerb40.
Panda II code:
InterruptPort LeftTurn = new InterruptPort((Cpu.Pin)FEZ_Pin.Interrupt.Di43, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeHigh);
LeftTurn.OnInterrupt += new NativeEventHandler(LeftTurn_OnInterrupt);
static PWM Red = new PWM((PWM.Pin)FEZ_Pin.PWM.Di6);
Am I on the right track with this?
InterruptPort LeftTurn = new InterruptPort((Cpu.Pin)FEZCerberus.Interrupt.PA2, true, Port.ResistorMode.PullUp, Port.InterruptMode.InterruptEdgeHigh);
PWM LeftRed = new PWM((PWM.Pin)FEZCerberus.PWM.PB9);