Android Integration

Bring lighthouse to your next Android Project

In just 7 lines of code, you can fully visualize the data from lighthouse.

Get the library

  1. Add the JitPackarrow-up-right repository to your root build.gradle at the end of repositories

    allprojects {
    		repositories {
    			...
    			maven { url 'https://jitpack.io' }
    		}
    	}
  2. Add the dependency

    dependencies {
    	        implementation 'com.github.curio-lighthouse:lighthouse:Tag'
    	}
circle-exclamation

Time to use it

  1. Create the LiDAR and LidarDisplay Objects

    LIDAR myLidar;
    LidarDisplay lidarDisplay;
  2. Pass the Activity to the LidarDisplay Constructor

    lidarDisplay = new LidarDisplay(this);
  3. Pass the Activity and LidarDisplay to the LDAR constructor

    myLidar = new LIDAR(this, lidarDisplay);
  4. Connect and Start lighthouse

    if (myLidar.connectToLIDAR()) {
        myLidar.startLIDAR();
    }

Boom!

Put all together in the MainActivity

circle-exclamation
circle-info

A video walkthrough of the above process is available herearrow-up-right

Last updated