예제 #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);
        }