public void CanSendEarChoregraphy() { Nabaztag myNabaz = new Nabaztag(ConfigurationManager.AppSettings["SerialNumber"], ConfigurationManager.AppSettings["Token"]); ChoregraphyEvent chorEvent = new ChoregraphyEvent("BodySplash chor", 10); chorEvent.AddCommand(new ChoregraphyEarCommand(myNabaz.LeftEar.WithAngleAndDirection(60, NabaztagEar.Direction.CouterClockwise), 10)); chorEvent.AddCommand(new ChoregraphyEarCommand(myNabaz.RightEar.WithAngleAndDirection(60, NabaztagEar.Direction.Clockwise), 10)); myNabaz.SendEvent(chorEvent); }
public void CanSendEarAndLedChor() { Nabaztag myNabaz = new Nabaztag(ConfigurationManager.AppSettings["SerialNumber"], ConfigurationManager.AppSettings["Token"]); ChoregraphyEvent chorEvent = new ChoregraphyEvent("complex chor", 10); chorEvent.AddCommand(new ChoregraphyEarCommand(myNabaz.LeftEar.WithAngleAndDirection(80, NabaztagEar.Direction.Clockwise), 10)); chorEvent.AddCommand(new ChoregraphyEarCommand(myNabaz.RightEar.WithAngleAndDirection(80, NabaztagEar.Direction.CouterClockwise), 20)); chorEvent.AddCommand(new ChoregraphyLedCommand(myNabaz.HighLed.WithColor(Color.Red), 25)); chorEvent.AddCommand(new ChoregraphyLedCommand(myNabaz.MiddleLed.WithColor(Color.Blue), 25)); chorEvent.AddCommand(new ChoregraphyLedCommand(myNabaz.BottomLed.WithColor(Color.DarkBlue), 30)); chorEvent.AddCommand(new ChoregraphyEarCommand(myNabaz.LeftEar.WithAngleAndDirection(80, NabaztagEar.Direction.CouterClockwise), 40)); myNabaz.SendEvent(chorEvent); }
public void CanSendLedChoregraphy() { Nabaztag myNabaz = new Nabaztag(ConfigurationManager.AppSettings["SerialNumber"], ConfigurationManager.AppSettings["Token"]); ChoregraphyEvent chorEvent = new ChoregraphyEvent("BodySplash chor", 10); ChoregraphyLedCommand firstCommand = new ChoregraphyLedCommand(myNabaz.MiddleLed.WithColor(Color.Green), 10); firstCommand.Time = 1; ChoregraphyLedCommand secondCommand = new ChoregraphyLedCommand(myNabaz.LeftLed.WithColor(Color.Red), 10); secondCommand.Time = 2; chorEvent.AddCommand(firstCommand); chorEvent.AddCommand(secondCommand); myNabaz.SendEvent(chorEvent); }