Exemplo n.º 1
0
        public void InitHardware()
        {
            Console.WriteLine("Creating output ports...");

            sensor          = new Tmp102(Device.CreateI2cBus());
            sensor.Updated += Sensor_Updated;
        }
Exemplo n.º 2
0
 public static void Main()
 {
     Tmp102 t = new Tmp102();
     while(true)
     {
         // Print temp in degrees C and F to console
         Console.WriteLine("{0}°C  {1}°F", t.tempC , t.tempF);
         Thread.Sleep(1000);
     }
 }
Exemplo n.º 3
0
    public static void Main()
    {
        Tmp102 t = new Tmp102();

        while (true)
        {
            // Print temp in degrees C and F to console
            Console.WriteLine("{0}°C  {1}°F", t.tempC, t.tempF);
            Thread.Sleep(1000);
        }
    }