void Initialize() { Console.WriteLine("Initialize hardware..."); var i2cBus = Device.CreateI2cBus(I2cBusSpeed.FastPlus); vL53L0X = new Vl53l0x(i2cBus); vL53L0X.Initialize(); }
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(); }