Exemplo n.º 1
0
 void ADC()
 {
     while (true)
     {
         int val = ad.ReadVoltage();
         lock (sync) {
             Messwerte.Enqueue(val);
         }
     }
 }
        public void DoVerySmartDisplay()
        {
            wiringPiLib.WiringPiSetupGpio();
            dac = new AD_MCP3201_SPI(wiringPiLib, 26, 13, 19);

            while (true)
            {
                Console.WriteLine(dac.ReadVoltage());
                //Thread.Sleep (10);
            }
        }