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;
 }
 private void sdCard_SDCardUnmounted(GTM.GHIElectronics.SDCard sender)
 {
     _sdCardDevice = null;
     ShowSDCardMissingMessage();
 }
 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");
 }