Ejemplo n.º 1
0
    public static void Main()
    {
        DigitalLed        led        = new DigitalLed(Pin.Pin0);
        IDigitalInterrupt startTests = Signals.DigitalInterrupt.Bind(Pin.Pin1, "Restart Testing", ResistorMode.PullUp, InterruptMode.InterruptEdgeLow, 50);
        var input = new GpioInput(startTests);

        LedTestHarness.RunTests(Assembly.GetExecutingAssembly(), led, input);
    }
Ejemplo n.º 2
0
    public static void Main()
    {
        DigitalLed        led        = new DigitalLed((Pin)SecretLabsPinAssignment.ONBOARD_LED);
        IDigitalInterrupt startTests = Signals.DigitalInterrupt.Bind((Pin)SecretLabsPinAssignment.GPIO_PIN_D0,
                                                                     "Restart Testing",
                                                                     ResistorMode.PullUp,
                                                                     InterruptMode.InterruptEdgeLow,
                                                                     50);
        var input = new GpioInput(startTests);

        LedTestHarness.RunTests(Assembly.GetExecutingAssembly(), led, input);
    }