Example #1
0
        private void buttonLFDown_Click(object sender, EventArgs e)
        {
            textBox.Text = "";
            short steps = HotwireControl.Invert(trackBarStepsMotorB.Value, Configuration.ReverseB, true);

            Port.MoveMotor(2, steps);
        }
Example #2
0
        private void buttonRLUp_Click(object sender, EventArgs e)
        {
            textBox.Text = "";
            short steps = HotwireControl.Invert(trackBarStepsMotorD.Value, Configuration.ReverseD, false);

            Port.MoveMotor(4, 1);
        }
Example #3
0
        private void buttonLBDown_Click(object sender, EventArgs e)
        {
            textBox.Text = "";
            short steps = HotwireControl.Invert(trackBarStepsMotorA.Value, Configuration.ReverseA, true);

            if (checkBoxMaster.Checked == false)
            {
                Port.MoveMotor(1, steps);
            }
            else
            {
                Port.MoveMotors(steps, steps, steps, steps);
            }

            PortReader();
        }