Пример #1
0
        public void InitHardware()
        {
            Console.WriteLine("Initialize...");

            sensor = new Adxl337(Device, Device.Pins.A01, Device.Pins.A02, Device.Pins.A03, 500);

            sensor.AccelerationChanged += Sensor_AccelerationChanged;
        }
Пример #2
0
        public void InitHardware()
        {
            Console.WriteLine("Initialize...");

            sensor = new Adxl337(Device, Device.Pins.A00, Device.Pins.A01, Device.Pins.A02);

            sensor.Updated += Sensor_Updated;

            sensor.StartUpdating(500);
        }