I’m porting an Arduino lib to NETMF/Gadgeteer
The original code:
digitalWrite(resetPin, HIGH);
My code:
var p3 = GT.Socket.GetSocket(9, false, null, null).CpuPins[3];
var ResetPin = new OutputPort(p3, false);
ResetPin.Write(true);
Essentially the question is – does the HIGH == true && does LOW == false?
Thanks for the info.
My first attempt for extending my Arachnid. As the project proceeds, I’ll put up more info.
Justin
#4
@ mhectorgato - Is that what i think it is?
1 Like
Justin
#5
@ danmeland - Start a new thread with your question.
I would tweak that a bit and change…
var ClkPin = new OutputPort(p3, true);
ClkPin.Write(false);
var CsPin = new OutputPort(p4, true);
CsPin.Write(false);
to
var ClkPin = new OutputPort(p3, false);
var CsPin = new OutputPort(p4, false);
Otherwise, you’ll end up with a momentary state where it flips from a default value of true to a value of false.
1 Like
Justin
#8
@ mhectorgato - Nice one, i expect you to be whipping out Eagle and superseeding the v1 design 
At the rate I’m going the 2nd Mayan calendar will have expired first … 
1 Like