public App() { InitializePeripherals(); InitializeWebServer(); HumidityLogs = new ArrayList(); HumidityLogs = MicroSDController.Load(); }
private void OnTimerInterrupt(object state) { HumidityLogs.Add(new HumidityLog() { Date = _rtc.CurrentDateTime.ToString("hh:mm tt dd/MMM/yyyy"), Humidity = (int)_humiditySensor.Read() }); MicroSDController.Save(HumidityLogs); Thread _animationThread = new Thread(() => { _rgbPwmLed.StartBlink(Netduino.Foundation.Color.Blue); Thread.Sleep(1000); _rgbPwmLed.SetColor(Netduino.Foundation.Color.Green); }); _animationThread.Start(); }