Ejemplo n.º 1
0
        public Vibrator()
        {
            if (vibrate)
            {
                //create a vibrate object if it is requested

                Led = new OpenNETCF.WindowsCE.Notification.Led();

                vibrate = true;
            }
        }
Ejemplo n.º 2
0
        public Vibrator()
        {
            if (vibrate)
            {

                //create a vibrate object if it is requested

                Led = new OpenNETCF.WindowsCE.Notification.Led();

                vibrate = true;

            }
        }
Ejemplo n.º 3
0
        public static void PlayVibration(int mmm)
        {
            OpenNETCF.WindowsCE.Notification.Led vib = new OpenNETCF.WindowsCE.Notification.Led();

            //---start vibration---

            vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.On);

            System.Threading.Thread.Sleep(mmm);

            //---stop vibration---

            vib.SetLedStatus(1, OpenNETCF.WindowsCE.Notification.Led.LedState.Off);
        }