public RealDeployerFactory(EthernetENC28J60 ethernet, StorageDevice storageDevice, BreakoutTB10 breakout,
                            CharacterDisplay characterDisplay,
                            Tunes tunes)
 {
     _ethernet = ethernet;
     _storageDevice = storageDevice;
     _breakout = breakout;
     _characterDisplay = characterDisplay;
     _tunes = tunes;
 }
Пример #2
0
        // This method is run when the mainboard is powered up or reset.
        void ProgramStarted()
        {
            Debug.Print("Program Started");

            sdCard.MountSDCard();
            storage = sdCard.GetStorageDevice();
            rootDir = sdCard.GetStorageDevice().RootDirectory;

            ethernet_J11D.NetworkUp += new GTM.Module.NetworkModule.NetworkEventHandler(ethernet_J11D_NetworkUp);
            ethernet_J11D.NetworkDown += new GTM.Module.NetworkModule.NetworkEventHandler(ethernet_J11D_NetworkDown);
            ethernet_J11D.UseDHCP();

            TimeService.SystemTimeChanged += new SystemTimeChangedEventHandler(TimeService_SystemTimeChanged);
            TimeService.TimeSyncFailed += new TimeSyncFailedEventHandler(TimeService_TimeSyncFailed);

            temperatureHumidity.MeasurementComplete += new TemperatureHumidity.MeasurementCompleteEventHandler(temperatureHumidity_MeasurementComplete);

            GT.Timer timer = new GT.Timer(30000);
            timer.Tick += new GT.Timer.TickEventHandler(timer_Tick);
            timer.Start();
        }
Пример #3
0
 void sdCard_SDCardMounted(SDCard sender, GT.StorageDevice storageDevice)
 {
     ledSD.TurnGreen();
     sdStorageDevice = storageDevice;
     CheckAndTransfer();
 }
Пример #4
0
 void usbHost_USBDriveDisconnected(UsbHost sender)
 {
     ledUSB.TurnRed();
     usbStorageDevice = null;
 }
Пример #5
0
 void usbHost_USBDriveConnected(UsbHost sender, GT.StorageDevice storageDevice)
 {
     ledUSB.TurnGreen();
     usbStorageDevice = storageDevice;
     CheckAndTransfer();
 }
Пример #6
0
 void sdCard_SDCardUnmounted(SDCard sender)
 {
     ledSD.TurnRed();
     sdStorageDevice = null;
 }
Пример #7
0
 private void sdCard_SDCardUnmounted(GTM.GHIElectronics.SDCard sender)
 {
     _sdCardDevice = null;
     ShowSDCardMissingMessage();
 }
Пример #8
0
 private void InitialiseModel(GT.StorageDevice SDCard)
 {
     _sdCardDevice = SDCard;
     OnFileListReady(_sdCardDevice.ListFiles("Thumbs"));
     OnNavigationRequested(NavigationDirection.Forward);
 }
Пример #9
0
 private void sdCard_Mounted(SDCard sender, StorageDevice SDCard)
 {
     Debug.Print("SD card mounted. Unmount before removing");
 }
Пример #10
0
 void sdCard_SDCardUnmounted(SDCard sender)
 {
     ledSD.TurnRed();
     sdStorageDevice = null;
 }
Пример #11
0
 void sdCard_SDCardMounted(SDCard sender, GT.StorageDevice storageDevice)
 {
     ledSD.TurnGreen();
     sdStorageDevice = storageDevice;
     CheckAndTransfer();
 }
Пример #12
0
 public Persistence(StorageDevice storageDevice)
 {
     _storageDevice = storageDevice;
 }
Пример #13
0
 void sdCard_SDCardMounted(SDCard sender, GT.StorageDevice SDCard)
 {
     Debug.Print("SD card has been successfully mounted. You can now read/write/create/delete files");
     Debug.Print("Unmount before removing");
 }