Ejemplo n.º 1
0
        public void Init()
        {
            Servo = new ServoMotor(_pwmDevice, PwmChannel.C1, 150, 600);
            DcMotor = new DcMotor(_pwmDevice, PwmChannel.C4, PwmChannel.C5);
        
            Stepper = new StepperMotor(
                _pwmDevice
                , PwmChannel.C11
                , PwmChannel.C10
                , PwmChannel.C9
                , PwmChannel.C8);

            Stepper.RotationCompleted += OnStepperCompleted;

            Led0 = new Led(_pwmDevice, PwmChannel.C0);
        }
Ejemplo n.º 2
0
 public void Init()
 {
     Servo = new ServoMotor(PwmDevice, PwmChannel.C1, 150, 600);
     Led0 = new Led(PwmDevice, PwmChannel.C0);
 }