I think I may have come across a bug when using the ShieldBase in a project.
Start a new VS project using the new 4.2.2 SDK on a Go! and ShieldBase running the latest versions of NETMF and ShieldBase update 5. Connect the ShieldBase to socket 5. Now I am using the Komodex module (I'm sure Chris has one ) to show that there is some activity. My application looks like this:
using System.Threading; using Komodex.NETMF; using NetduinoGo;namespace ShieldbaseBug { public class Program { public static void Main() { ShieldBase sb = new ShieldBase((GoBus.GoSocket) 5); SevenSegmentDisplay display = new SevenSegmentDisplay(); while (true) { for (int counter = 0; counter < 9999; counter++) { display.SetValue(counter); Thread.Sleep(200); } } } } }
Deploy the application to the Go! and you should see the module start counting. Now stop the debugger and the app should keep on counting. Unplug the Go! and then plug it back in to the PC. Wait a while and nothing happens. The app does not start running.
Now comment out the declaration of sb and repeat. The app starts counting in both cases.
Bug or am I missing something?
Regards,
Mark