public RealDeployerFactory(EthernetENC28J60 ethernet, StorageDevice storageDevice, BreakoutTB10 breakout, CharacterDisplay characterDisplay, Tunes tunes) { _ethernet = ethernet; _storageDevice = storageDevice; _breakout = breakout; _characterDisplay = characterDisplay; _tunes = tunes; }
// 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(); }
void sdCard_SDCardMounted(SDCard sender, GT.StorageDevice storageDevice) { ledSD.TurnGreen(); sdStorageDevice = storageDevice; CheckAndTransfer(); }
void usbHost_USBDriveDisconnected(UsbHost sender) { ledUSB.TurnRed(); usbStorageDevice = null; }
void usbHost_USBDriveConnected(UsbHost sender, GT.StorageDevice storageDevice) { ledUSB.TurnGreen(); usbStorageDevice = storageDevice; CheckAndTransfer(); }
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); }
private void sdCard_Mounted(SDCard sender, StorageDevice SDCard) { Debug.Print("SD card mounted. Unmount before removing"); }
public Persistence(StorageDevice storageDevice) { _storageDevice = storageDevice; }
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"); }