Garmin LIDAR-Lite v4 (Qwiic) Hookup Guide
Example 1: Basic Readings
Once you've got the library installed, open the Example1_GetDistance sketch. You can find it under
File > Examples > SparkFun Garmin LIDAR-Lite v4 Arduino Library > Examples
Then upload the sketch onto your RedBoard or Uno and open your favorite Serial Terminal to see the printed values. (Don't forget to set the baud rate to 115200bps.)
Example 2: Address Change
Open the Example2_ChangeI2CAddress sketch from the library examples.
Once the sketch has been uploaded, open up a Serial Terminal with the baud rate set at 115200bps. There, users will be prompted to input a value to change the I2C address.
Following the address change, the sketch will scan the I2C bus for connected devices and display their address. Users should see the LIDAR sensor at the address they specified.