public PicProgrammer(SerialPort sp, bool LVP)
		{
			bp = new BusPirate(sp);
			bp.Open();
			hw = new RawWire(bp);
			hw.EnterMode();

			hw.ConfigProtocol(false, false, true);
			hw.ConfigPins(true, true, false, false);
			hw.HighSpeed = true;
			this.lvp = LVP;
		}
        public PicProgrammer(SerialPort sp, bool LVP)
        {
            bp = new BusPirate(sp);
            bp.Open();
            hw = new RawWire(bp);
            hw.EnterMode();

            var ActiveOut = true;

            hw.ConfigProtocol(activeOutput: ActiveOut, threeWire: false, LSBfirst: true);
            hw.ConfigPins(power: true, pullups: !ActiveOut, aux: false, cs: true);
            hw.SpeedMode = RawWire.Speed.s400khz;
            this.lvp = LVP;
        }