void anm_AnmFinishedHandler2(object sender, EventArgs e) { arduino.SetServo(ArduinoUnoPins.D9_PWM, 0); arduino.SetServo(ArduinoUnoPins.D10_PWM, 0); Qurihara.Anm.WaitAnm anm = new Qurihara.Anm.WaitAnm(1000); anm.AnmFinishedHandler += anm_AnmFinishedHandler3; anm.Start(); }
private void Initialize() { if (!Task.debug) { arduino.SetPinMode(ArduinoUnoPins.D9_PWM, PinModes.Servo); arduino.SetPinMode(ArduinoUnoPins.D10_PWM, PinModes.Servo); Qurihara.Anm.WaitAnm anm = new Qurihara.Anm.WaitAnm(1000); anm.AnmFinishedHandler += anm_AnmFinishedHandler; anm.Start(); } }