コード例 #1
0
        /// <summary>
        /// Allows fine tuning of servo or sets it to requested angle
        /// </summary>
        /// <param name="angle">Requested angle</param>
        public async void SetAngle(int angle)
        {
            servo.RotateTo(new Angle(angle + 90));
            await Task.Delay(500);

            servo.Stop();
        }
コード例 #2
0
 public void Stop()
 {
     _servo.Stop();
 }