I know the example shows a timer looking for a button.ispressed state, but I also noticed that the button has a pressed event defined in the Fez Cream intellisense. Is it a known issue that it never fires the event?
private void ProgramStarted()
{
this.button.Pressed += Button_Pressed;
this.timer = new DispatcherTimer();
this.timer.Interval = TimeSpan.FromMinutes(1);
this.timer.Tick += Timer_Tick;
this.timer.Start();
}
private void Button_Pressed(GTM.Button sender, object args)
{
CheckMoisture();
}
private void Timer_Tick(object sender, object e)
{
CheckMoisture();
}
The timer calls the function fine, the button press event never does.