// 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. }
public CCapteurUltrason(int socketNumber) { m_distanceUS3 = new DistanceUS3(socketNumber); isOpen = true; }