예제 #1
0
        // Main entry function
        // This method executes when the mainboard is powered up or reset.
        void ProgramStarted()
        {
            Debug.Print("Welcome to Smart Security System!");

            // Initialize Display, network, time, data
            this.LoadStartupView();
            this.StartNetwork();
            this.LoadData();

            // Global output modules for led light, sound and motion
            ledLight    = ledStrip;
            alarm       = tunes;
            distSensor1 = distanceUS3;
            distSensor2 = distanceUS32;

            //this.LoadLoginView();  // temporary, should be deleted.
        }
예제 #2
0
 public CCapteurUltrason(int socketNumber)
 {
     m_distanceUS3 = new DistanceUS3(socketNumber);
     isOpen        = true;
 }