using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using Bt;
using Bt.SysLib;

namespace SCAN.lib
{
    class BtSysLib
    {

        public static void buzzerOn(uint period, uint count)
        {
            Bt.LibDef.BT_BUZZER_PARAM parm = new Bt.LibDef.BT_BUZZER_PARAM
            {
                dwOn = period,
                dwOff = period,
                dwCount = count,
                bTone = 2,
                bVolume = 3
            };
            Bt.SysLib.Device.btBuzzer(1, parm);
        }

        public static void vibrateOn(uint period, uint count)
        {
            Bt.LibDef.BT_VIBRATOR_PARAM parm = new Bt.LibDef.BT_VIBRATOR_PARAM
            {
                dwOn = period,
                dwOff = period,
                dwCount = count
            };
            Bt.SysLib.Device.btVibrator(1, parm);
        }
    }
}
