Esempio n. 1
0
 static void Main(string[] args)
 {
     var robot = new Trik.Junior.Robot();
     int counter = 0;
     Console.WriteLine(robot.Sensor[Sensor.A1].Read()); 
     var motor = new Trik.PowerMotor(Motor.M1);
     while (counter < 10)
     {
         for (int i = 1; i < 4; i++)
         {
             robot.Led.SetColor((Collections.LedColor) i);
             Thread.Sleep(500);
         }
         counter++;
     }
         
 }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var robot   = new Trik.Junior.Robot();
            int counter = 0;

            Console.WriteLine(robot.Sensor[Sensor.A1].Read());
            var motor = new Trik.PowerMotor(Motor.M1);

            while (counter < 10)
            {
                for (int i = 1; i < 4; i++)
                {
                    robot.Led.SetColor((Collections.LedColor)i);
                    Thread.Sleep(500);
                }
                counter++;
            }
        }