private void StopConditie()
 {
     MPUSB.WriteDigitalOutPortD(SCL);
     Wait();
     MPUSB.WriteDigitalOutPortD(SDA | SCL);
     Wait();
 }
 private void ZendEen()
 {
     MPUSB.WriteDigitalOutPortD(SDA);
     MPUSB.WriteDigitalOutPortD(SDA | SCL);
     Wait();
     MPUSB.WriteDigitalOutPortD(0);
     System.Console.WriteLine("Een gestuurd");
 }
 private void ZendNul()
 {
     MPUSB.WriteDigitalOutPortD(0);
     MPUSB.WriteDigitalOutPortD(SCL);
     Wait();
     MPUSB.WriteDigitalOutPortD(0);
     System.Console.WriteLine("Nul gestuurd");
 }
        private void btnInit_Click(object sender, RoutedEventArgs e)
        {
            MPUSB.OpenMPUSBDevice();

            // Startconditie
            StartConditie();

            Wait();

            WriteSlaveAddress();

            StopConditie();
        }