コード例 #1
0
        void Initialize()
        {
            Console.WriteLine("Initialize hardware...");
            var i2cBus = Device.CreateI2cBus(I2cBusSpeed.FastPlus);

            vL53L0X = new Vl53l0x(i2cBus);
            vL53L0X.Initialize();
        }
コード例 #2
0
        void InitializeWithShutdownPin()
        {
            Console.WriteLine("Initialize hardware...");
            var i2cBus = Device.CreateI2cBus(I2cBusSpeed.FastPlus);
            var pin    = Device.CreateDigitalOutputPort(Device.Pins.D05, true);

            vL53L0X = new Vl53l0x(i2cBus, pin);
            vL53L0X.Initialize();
        }