I have been a .NET developer about 2 years and I got a netduino just a few minutes ago. Yeah!
I connected it to the usb port and installed .NET MF and SDK sets. but failed to create a project with Netduino. I searched the forum a few minutes and found that you have to put templates in the documents folder located in local drive. I have my documents folder in "E" drive. It was really embarrassing...
OK, here's a question.
1. Is there anything that I have to pay attention or be cautious when I attempt to remove Netduino devices from computer?
2. you know, there's a guide for a newbie and it has the first project tutorial about turning on and off the LED on the board.
I succeeded and while the LED was blinking, I tried to do following code.
public static void Main() { OutputPort outport = new OutputPort(Pins.ONBOARD_LED, false); outport.Write(false); Thread.Sleep(250); outport.Dispose(); }
Instead of turning off, it remained turned on(not blinking).
But just "outport.Write(false);" removing other lines did the job.
3. From the above code, do I have to use "Dispose" method actually? I think that because netduino has a embeded framework on the chip and there must be a garbage collector. So from the view of managing memory, I guess it is necessary to dispose the method. but it can't do...