예제 #1
0
        /// <summary>
        /// Testing method for Compass module (function never returns)
        /// </summary>
        static void TestCompass()
        {
            Compass com = new Compass(FEZRaptor.I2cBus.I2c1, FEZRaptor.Socket14.Pin3);

            com.StartTakingMeasurements();
            com.MeasurementComplete += (sender, e) => { Debug.WriteLine($"Info : {e.ToString()}"); };
            Thread.Sleep(Timeout.Infinite);
        }