示例#1
0
        public void InitHardware()
        {
            Console.WriteLine("Initialize...");

            sensor = new Adxl335(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 Adxl335(Device, Device.Pins.A00, Device.Pins.A01, Device.Pins.A02);

            sensor.Updated += Sensor_Updated;

            sensor.StartUpdating(500);
        }