I hope I am using the terminology correct.
I am just learning the Netduino and prgramming, and I read where you can use the following code for a button read:
buttonState = !button.Read():
and this will invert the input. I tried using this concept on another line and VS 2012 pro is giving me an error. I used:
led2 = !led1; (failed) {error message Error 1 Operator '!' cannot be applied to operand of type 'Microsoft.SPOT.Hardware.OutputPort' c:...Blink-shieldProgram.cs 28 24 Blink-shield}
and
led2 = !led1.Read(); (failed as well) {error message Error 1 Cannot implicitly convert type 'bool' to 'Microsoft.SPOT.Hardware.OutputPort' c:...Blink-shieldProgram.cs 28 24 Blink-shield}
Am I trying to use this in a way not designed, or is my syntax wrong?
Guys, I know I am throwing a bunch of questions out here, and thank you for all of your help getting me up and going.