Beispiel #1
0
 public MpcVolume(MPC3x101Touchscreen mpc)
 {
     _volUpBtn = new UIButton(mpc, 2)
     {
         HoldTime = TimeSpan.FromSeconds(0.5)
     };
     _volUpBtn.ButtonEvent += OnOtherButtonEvent;
     _volDownBtn            = new UIButton(mpc, 3)
     {
         HoldTime = TimeSpan.FromSeconds(0.5)
     };
     _volDownBtn.ButtonEvent += OnOtherButtonEvent;
     _muteBtn              = new UIButton(mpc, 1);
     _muteBtn.ButtonEvent += OnOtherButtonEvent;
     _volGuage             = new UIGuage(mpc, 1);
 }
Beispiel #2
0
 /// <summary>
 /// specifies the touchscreen as a MPC3x101 type
 /// </summary>
 /// <param name="touchscreen"></param>
 public ButtonPanelUtility(MPC3x101Touchscreen touchscreen)
 {
     this._touchscreen = touchscreen;
 }