Ejemplo n.º 1
0
        private static void LogRawIR()
        {
            var receive = new RaspberryIRDotNet.RX.PulseSpaceConsoleWriter()
            {
                CaptureDevice = IRRXUtilities.RxDevicePath.Value,
            };

            IRRXUtilities.RunIRConsoleWriter(receive);
        }
        private void LogRawIR()
        {
            var receive = new RaspberryIRDotNet.RX.FilteredPulseSpaceConsoleWriter
            {
                CaptureDevice         = IRRXUtilities.RxDevicePath.Value,
                LeadInPattern         = RaspberryIRDotNet.PulseSpaceUnitList.LoadFromString(RemoteConfig.LeadIn),
                UnitDurationMicrosecs = RemoteConfig.UnitDuration,
            };

            Console.WriteLine("This will log & filter the IR to only what appears to be valid for this remote.");
            Console.WriteLine("The signal is first cleaned up (using the unit duration) then it is filtered by");
            Console.WriteLine("the lead-in pattern. The min/max unit counts are ignored.");
            Console.WriteLine("From left to right the columns are:");
            Console.WriteLine("  Type (PULSE / SPACE)");
            Console.WriteLine("  Raw duration");
            Console.WriteLine("  Rounded duration");
            Console.WriteLine("  Number of units");
            Console.WriteLine();
            IRRXUtilities.RunIRConsoleWriter(receive);
        }