Beispiel #1
0
 public static TempSensor Start(Cpu.Pin pin, int sampleInterval = 1000, TempSensorMode mode = TempSensorMode.Celcius)
 {
     TempSensor sensor = new TempSensor(pin, sampleInterval, mode);
     sensor._thread = new Thread(sensor.Run);
     sensor._thread.Start();
     return sensor;
 }
Beispiel #2
0
        public static TempSensor Start(Cpu.Pin pin, int sampleInterval = 1000, TempSensorMode mode = TempSensorMode.Celcius)
        {
            TempSensor sensor = new TempSensor(pin, sampleInterval, mode);

            sensor._thread = new Thread(sensor.Run);
            sensor._thread.Start();
            return(sensor);
        }