protected override void ConfigureContainer()
        {
            base.ConfigureContainer();

            RegisterTypeIfMissing(typeof(MouthViewModel), typeof(MouthViewModel), true);
            RegisterTypeIfMissing(typeof(RightPupilViewModel), typeof(RightPupilViewModel), true);
            RegisterTypeIfMissing(typeof(RightEyeViewModel), typeof(RightEyeViewModel), true);
            RegisterTypeIfMissing(typeof(RightPupilViewModel), typeof(RightPupilViewModel), true);
            RegisterTypeIfMissing(typeof(RightBrowViewModel), typeof(RightBrowViewModel), true);
            RegisterTypeIfMissing(typeof(LeftEyeViewModel), typeof(LeftEyeViewModel), true);
            RegisterTypeIfMissing(typeof(LeftPupilViewModel), typeof(LeftPupilViewModel), true);
            RegisterTypeIfMissing(typeof(LeftBrowViewModel), typeof(LeftBrowViewModel), true);
            RegisterTypeIfMissing(typeof(NoseViewModel), typeof(NoseViewModel), true);
            RegisterTypeIfMissing(typeof(HeadPageViewModel), typeof(HeadPageViewModel), true);
            RegisterTypeIfMissing(typeof(SensorReadingPageViewModel), typeof(SensorReadingPageViewModel), true);

            Mcp3008 driver = new Mcp3008(0);
            MaxSonarRangeDriver sonarDriver = new MaxSonarRangeDriver(driver,0);
            Container.RegisterInstance<Mcp3008>(driver);
            Container.RegisterInstance<MaxSonarRangeDriver>(sonarDriver);
            RegisterTypeIfMissing(typeof(SoundService), typeof(SoundService), true);
            RegisterTypeIfMissing(typeof(TimerService), typeof(TimerService), true);
            RegisterTypeIfMissing(typeof(MaxSonarPresenceService), typeof(MaxSonarPresenceService), true);
            RegisterTypeIfMissing(typeof(MaxSonarRangeDriver), typeof(MaxSonarRangeDriver), true);

            RegisterTypeIfMissing(typeof(MotionActivatedSimpleAnimation), typeof(MotionActivatedSimpleAnimation), true);
        }
        public MaxSonarRangeDriver(Mcp3008 spiDriver, int port)
        {
            if (port < 0 || port > 7)
                throw new ArgumentException("The port must be 0 - 7");
            _spiDriver = spiDriver;
            _port = port;

        }