/// <summary> /// Initializes a new instance of the <see cref="PiFaceCAD.DisplayDriver"/> class. /// </summary> /// <param name="hal">Hal.</param> public DisplayDriver(Controller controller) { m_PiFaceCAD = controller; m_TimeOutTimer = new Timer (); m_TimeOutTimer.Elapsed += TimeOutTimer_Elapsed; Init (); m_Disposed = false; }
/// <summary> /// Initializes a new instance of the <see cref="PiFaceCAD.InputDriver"/> class. /// </summary> /// <param name="hal">Hal.</param> public InputDriver(Controller controller) { m_PiFaceCAD = controller; m_RegisteredButtons = new Dictionary<uint, Action> (); m_ButtonTimer = new Timer (); this.Interval = 100; //Start by sampling the switches every 1/10 of a second InternalStartTimer (); m_Disposed = false; }
public PiFace() { m_Controller = Controller.Instance; m_Display = new DisplayDriver (m_Controller); m_Input = new InputDriver (m_Controller); }