/// <summary> /// Core system things. /// </summary> private static void InitializeACDC() { // Start reading data from the sensor and set up event to receive converted/pprocessed data. IMU = new RazorIMU(SerialPorts.COM1, 115200); IMU.StartReading(); IMU.DataProcessed += Imu_DataProcessed; // Wait for internet connectivity then print the IP address of the netduino while (NetworkInterface.GetAllNetworkInterfaces()[0].IPAddress == IPAddress.Any.ToString()) Thread.Sleep(100); Debug.Print("NETDUINO 3 WIFI IP: " + NetworkInterface.GetAllNetworkInterfaces()[0].IPAddress); // Start the web display WebDisplay.Initialize(); }
/// <summary> /// Core system things. /// </summary> private static void InitializeACDC() { // Start reading data from the sensor and set up event to receive converted/pprocessed data. IMU = new RazorIMU(SerialPorts.COM1, 115200); IMU.StartReading(); IMU.DataProcessed += Imu_DataProcessed; // If we're using the web display, initialize it. if(enableWebDisplay) WebDisplay.Initialize(); Buzzer.ReadyBuzz(); // Buzz to indicate ACDC is ready GoLED.ReadyLight(); // Flash to indicate ACDC is ready }